1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Alphabetical and numerical ordering is illogical

Discussion in 'Resolved Bug Reports' started by Phife, Sep 9, 2014.

  1. Phife

    Phife Member

    I hope that this classifies as a bug report. I would also like to apologise in advance for the really bad explanation. The alphabetical and numerical ordering does not follow the logical method. For instance:

    [​IMG]

    The above order should have 'Gang 1' then 'Gang 2' however it has 'Gang 1', 'Gang 10' and then 'Gang 2'. It does not take into consideration the 0.

    This is something very minor and does not break key features however it breaks the eye candy. XenForo is a very polished and amazing forum software. It's time to polish the small things - that we never notice but still matter.

    Many thanks! :)
     
  2. SamL

    SamL Active Member

    It's perfectly logical per alphabetical sorting.
    The way to fix it is to put a leading zero in front of your gang numbers. i.e. Gang 01, Gang 02, Gang 03, etc.
     
  3. Karelke

    Karelke Active Member

    That's not user friendly. XenForo could apply "natural ordering" instead:

    http://php.net/manual/en/function.natsort.php
     
    Phife likes this.
  4. Mike

    Mike XenForo Developer Staff Member

    Using natural sorting is not an option in many cases (where sorting happens in MySQL, for example).

    This is generally expected and is how "dictionary" sorting works (character by character, 1 < 2 < 3 and so on). It's really the default sorting method for a computer so this is expected (though not exactly explicitly designed).
     
  5. Karelke

    Karelke Active Member

    Why not resorting the result set?

    I understand, but that doesn't make it "user friendly". After all, the human eye is different than computer sorting.
     

Share This Page