Page 1 of 1

[FIXED] Inventory Display Bug (sort of)

Posted: Wed Apr 01, 2009 6:26 am
by Will
Not really a big deal, but the inventory appears to be sorted in strict alphabetical order resulting in Scrolls of Wisdon being listed out of order. #1 is immediately followed by #10, #11, and #12. Next comes #2 and the expected order resumes. Any way to slightly change the names of the single-digit scrolls (either #01 or #<space>1) to force the alphabetical sorting algorithm to put them in the order that one would expect?

Posted: Thu Apr 02, 2009 12:23 am
by Mad Merlin
Mmm... I didn't like either of those renaming options, and didn't want to bother natsort()ing them after pulling out the already nicely sorted database result.

However, then I found a better solution (I changed the #s for 10-12 to #s which "fixes" the sort order, but is visually no different). Everyone's a winner!

Posted: Thu Apr 02, 2009 2:39 am
by evev
It's a small change, but one much appreciated, Mad Merlin. Makes finding which scrolls you are missing at a glance much easier :)

Thanks!

Posted: Thu Apr 02, 2009 6:10 am
by Will
Cool, thanks for the change. I agree that it makes quickly glancing at the scrolls to find gaps much easier!