[FIXED] Inventory Display Bug (sort of)

Eeek! Bugs!
Post Reply
Will
Regular Poster
Posts: 81
Joined: Mon Mar 30, 2009 1:04 pm

[FIXED] Inventory Display Bug (sort of)

Post 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?
User avatar
Mad Merlin
Site Admin
Posts: 752
Joined: Sun Aug 14, 2005 10:41 pm
Contact:

Post 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!
User avatar
evev
Regular Poster
Posts: 40
Joined: Tue Mar 24, 2009 8:52 pm
Location: California

Post 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!
Will
Regular Poster
Posts: 81
Joined: Mon Mar 30, 2009 1:04 pm

Post by Will »

Cool, thanks for the change. I agree that it makes quickly glancing at the scrolls to find gaps much easier!
Post Reply