Sort stringlist on specific part

edited October 2015 in How To...

How can I sort values in a stringList on the first part, before a - token? I'm making a program, where I have a string list. In this list, I add a time (example: 3.78, 81.84, 8.83) and a word (letters!). I want to make Processing sort the times, so that he give me 3.78, 8.83, 81.84. But if I use the sort() command, processing sorts the list based on the words and NOT on the times. How can I make this correct?

Thanks in advance, DaDa

Answers

Sign In or Register to comment.