SalentoFC Member Licensed User Longtime User Dec 11, 2014 #1 How can I ordinate a list of elements I like to sort for first field (numeric) and others string? I've got a top 100 of results I.must to.sort for field (punteggio) but with list.sort (false) all the element is considered strings too if first field of stringbuilder is numeric. How can I do? See at the example to understand very well. Position 18.and 19. (Value of punteggio 223) should stay under position 20 (value of punteggio 2092). Right? Attachments Screenshot.zip Screenshot.zip 109.1 KB · Views: 322
How can I ordinate a list of elements I like to sort for first field (numeric) and others string? I've got a top 100 of results I.must to.sort for field (punteggio) but with list.sort (false) all the element is considered strings too if first field of stringbuilder is numeric. How can I do? See at the example to understand very well. Position 18.and 19. (Value of punteggio 223) should stay under position 20 (value of punteggio 2092). Right?
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2014 #2 You need to use a custom type with all the fields and then sort the list with List.SortType. Upvote 0