[Gambas-user] A piece of code to sort an array of collections

Benoît Minisini g4mba5 at gmail.com
Thu Jan 21 22:08:25 CET 2021


Le 21/01/2021 à 19:33, Jussi Lahtinen a écrit :
> 
> OK, this looks better. It is not the same code you posted earlier (if 
> you don't believe me, look yourself).

Yes, the initial code was a non-sense.

> Collections are not guaranteed to keep order or so Benoit has said. I 
> don't know in what situation the order can change.

They do: collections always enumerate its values in the order they were 
inserted.

https://gambaswiki.org/wiki/comp/gb/collection/_next

Regards,

-- 
Benoît Minisini


More information about the User mailing list