Two things jump to mind: using a Gee.TreeSet, which is always sorted, or calling Gee.ArrayList.sort.
The first feels like overkill and I can’t find documentation on the other. What’s the smartest way to proceed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have an array, you can try using the POSIX
qsortfunction like this:and be sure to compile with
--pkg posix. You may want to usestrcollinstead if sorting for the user.