This content has been marked as final. Show 4 replies
Try either of these sort methods:
if you're not using large arrays and you're not doing many searches for array elements, the sort() method will work adequately. but it's very slow so for large arrays or frequent searches you would be better served to use a simple pairwise comparision:
sorry Kglad, but i can't understand what that you mean in your example. can you please explain more plz.
i can use sort() as i have only 4 digits inside my array.
thanks a lot .
then use the sort() method.