[Gambas-user] Sort an array of Objects[] of different Class

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Apr 22 00:32:49 CEST 2020


I don't know what you are going to do with the code, but keep in mind that
if the object array will get objects, which does not inherit the compare
method, then you will get silent sorting errors.
So, either keep the variable used in the comparison in the base class or
build guard for the object array. Otherwise you will end up with troubles.

Jussi

On Wed, Apr 22, 2020 at 1:10 AM martin p cristia <tercoide at hotmail.com>
wrote:

> Thanks Jussi, that is what I wanted!!!
>
> --
> Saludos
>
> Ing. Martin P Cristia
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200422/463e5467/attachment.html>


More information about the User mailing list