Thread: GuiTextListCtrl
View Single Post
  #6  
Old 09-03-2008, 02:20 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by godofwarares View Post
...
Hey! It's me!


Quote:
Originally Posted by xXziroXx View Post
M-m-m-meeega Buuuump!


Is there a way to sort by value (well I know there's a sortmode = "value";, but keep reading!)? Sorting numbers does fishy sorting like... 12, 34, 260 would be sorted as:

12
260
32

A bit frustrating when making a shop GUI and want to sort it by item costs
The problem with the sorting is that it's sorted by the first letter of a string rather than the integer values of said numbers. I suppose you would have to get the elements from the list and parse them yourself, and then re-add them in that specific order, provided the list doesn't auto-sort.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote