hi experts,
i need to sort an array by repeated values, any idea or example?

say for example
if array value is
A,B,C,B,A,B,C

result shuld be
A,A,B,B,B,C,C

thanks
with regards
seenu...