![]() |
GuiTextListCtrl - Sort by Values?
I have a GuiTextListCtrl that I'd like to sort by the following values: "Low", "Medium", "High", "Critical".
When I sort it, it sorts alphabetically. How do I get it to sort using the list above? |
You could have it like:
PHP Code:
This is a workaround, but it's the only way I've ever known. Basically, have a 0 at the front, and sort it ascending. High gets 1, Medium gets 2, etc. Wish there was a better way. |
Quote:
we should be able to define our own sort methods |
| All times are GMT +2. The time now is 05:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.