in reply to Re: Re: wisdom needed
in thread wisdom needed: sorting an array

thanks marvell, this runs well, but the only problem is that the output prints every number (i only want one of each number printed) it also prints every number again when it comes across a new number!! e.g
@array = (1,1,1,1,2,2,3,3,3,4,4,4,5,5) OUTPUT 1 1 1 1 2 1 2 1 3 2 1 3 2 1 ETC
I am also not sure if is printing the most frequent value at the top or not. any suggestions??? :-) the help so far is much appreciated.