[Gambas-user] Sorting 2D arrays

T Lee Davidson t.lee.davidson at gmail.com
Mon Aug 24 22:01:41 CEST 2020


On 8/24/20 3:02 AM, John Rose wrote:
> The ith element of each array are correspondent to each other (i.e. like a Relational Database row).

If it were me, I think I'd simply use a SQLite database with a compound index on Series Name & Episode Name, and let the DB do 
the sorting for me. I'd add all the rows to the DB letting it sort on each insert, then pull all the rows out into a 
Collection[]. If I didn't want to store and manage a database file, I'd use an in-memory database.


-- 
Lee


More information about the User mailing list