[Gambas-user] Sorting 2D arrays

Gianluigi bagonergi at gmail.com
Wed Aug 26 14:36:34 CEST 2020


Il giorno mer 26 ago 2020 alle ore 09:21 Fabien Bodard <gambas.fr at gmail.com>
ha scritto:

>
>
> Le mer. 26 août 2020 à 08:33, John Rose <john.aaron.rose at mailbox.org> a
> écrit :
>
>> ... Apologies, Gianluigi, for doubting you.
>>
>
😃


>
> 😱
>
> It can work ..but where the benefit ?
>
> I will show you how we do that in the Gambas way.
>

😂

 While we wait for Fabien Bodard's code, you should, just as you adapted
your code to array arrays, do so for class arrays as well.

It's not that it's more difficult.

The _compare function (comparison data) is (I think) the usual Swap method
that you can study here:
http://gambaswiki.org/wiki/comp/gb.qt4/gridview/sorted
only this is made very fast by the magic of Benoit Minisini.

You don't need to understand everything right away (in fact I still have to
understand it :-)), just start using it.

Instead, to understand Action, the answers of the Big Boss in these
discussions could help:

https://lists.gambas-basic.org/pipermail/user/2008-September/021354.html

https://lists.gambas-basic.org/pipermail/user/2018-April/063838.html

https://lists.gambas-basic.org/pipermail/user/2018-April/063775.html

I am attaching something similar to what Fabien has suggested, perhaps ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200826/3e8f3d0e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RoseTest-2.zip
Type: application/zip
Size: 19396 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200826/3e8f3d0e/attachment-0001.zip>


More information about the User mailing list