samedi 30 juillet 2016

SORTING ... Your Opinion Please.

I need to set up a multi-element sort.
I have an array that contains <= 50 "rows". Each row will have 20 "columns".
Defined as MyArray(50,20)

Sample data could look like:
Name4, Category2, 4, 5, 7, ...
Name3, Category1, 7, 4, 9, ...
Name2, Category2, 8, 3, 4, ...
Name1, Category3, 5, 2, 1, ...
etc.

I want to sort the array first by Category, then by name. Final result should be:

Name3, Category1, 4, 5, 7, ...
Name2, Category2, 7, 4, 9, ...
Name4, Category2, 8, 3, 4, ...
Name1,...

SORTING ... Your Opinion Please.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2acaupC
via IFTTT

Aucun commentaire:

Enregistrer un commentaire