Author Topic: NGUI UIGrid Sort not working properly  (Read 4218 times)

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
NGUI UIGrid Sort not working properly
« on: August 03, 2013, 03:33:32 PM »


I am trying to use the UIGrid to sort my inventory here, however the sort seems to be working strange, the first 2 work okay:



Then when it hits number 3 - 9 (ID2) it jumps:



Then 9-15 (last id 14) is in slots 3+:


matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: NGUI UIGrid Sort not working properly
« Reply #1 on: August 03, 2013, 03:36:27 PM »
Ah crap, I'm stupid at times, 1 second after posting I realised that it works more alphabetically so it would go 0, 1, 11, 12, 13, 14, 2... Is there anyway to sort Numerically by the last digit? or should I just swap to a, b,c?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI UIGrid Sort not working properly
« Reply #2 on: August 04, 2013, 12:25:34 AM »
01, 02, 03, etc.