[Gambas-user] How to sort an array?

Benoit Minisini gambas at ...1...
Fri Feb 13 22:51:06 CET 2004


On Friday 13 February 2004 16:23, adam krell wrote:
> Is there an easy way to sort an array of integers?
> I'd do it in a columnview column but it only sorts
> text alphanumerically, I believe.
>
> Thanks,
>
> Adam
>

You can sort any array with the Sort() method.

When the array is a string array, Sort() takes one argument that indicates 
what sort of comparison you want (binary, case insensitive, system charset 
aware) and if you want an ascent or descent sort.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list