>thanks, ramon.
>
>but honestly, i thought all along it never goes as long as you've presented. can't we not just have a sort of a single argument in the function along this line we've discussed?
No, there is no way to do what you are asking without sorting the array yourself.