[Gambas-user] A piece of code to sort an array of collections
ocoquet at 3d-phenomen.fr
Fri Jan 22 08:43:32 CET 2021
Indeed, there was an error in the first code and I hadn't seen it.
In this line:
tmp_ar.Add(col[Colkey] & Chr(26) & i)
the [i] is missing at this point:
tmp_ar.Add(col*[i]*[Colkey] & Chr(26) & i)
My apologies, I don't know how this could have happened.
Le 21/01/2021 à 22:30, Jussi Lahtinen a écrit :
> > 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
> OK, thanks for the clarification. It seems there was miscommunication,
> he is sorting the array of collections, not the collections.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User