1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

GML Sorting grid from strings

Discussion in 'Programming' started by Kabcorp, Jan 23, 2017.

  1. Kabcorp

    Kabcorp Member

    Nov 26, 2016
    Hello GMers !
    I'm trying to sort a classic ds_grid using this:

    0 STR1 STR2 STR3 STR4

    All cases countain uppercase strings.
    I want sort the grid from the 1st collumn called STR1

    I tryed to convert strings to real but i think i missed something to have a good result.
    Some words in STR1 havn't the same lenght, can countain numbers and symbols too.

    Anyone have a tip to sort not with numbers but with letters?
  2. Deanaro

    Deanaro Guest

    What sorting algorithm are you using?
  3. Kabcorp

    Kabcorp Member

    Nov 26, 2016
    Nothing stable...
    I tryed to convert strings as FULL real like
    "ABC" (65+66+67=198)
    And i wanted "ABC"=656667

    But i havn't the tip to get this style of real values

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice