Ad
  • Default User Avatar

    @Chrono79 Why not just clearly state the rule behind the sentence "sorting those numbers as string", which is quite cryptic to be honest (eg. "you must order each string as the sum of the ASCII values of its chars" OR "you must order each string by its length", etc...).

    From your example I think the rule is "order the numbers by the decimal of its chars"

    So if we have "91 18 72 36 92" it should be sorted like this "18 36 72 91 92" because 1 in "18" < 3 in "36" < 7 in "72" < 9 in "91" and 1 in "91" < 2 in "92".

    Does this seems correct to you ?