0 Replies Latest reply on Dec 17, 2012 8:57 AM by MSSDedalus

    Force locale for localecompare

    MSSDedalus Level 1

      I'm trying to use localecompare to sort strings but have found that comparing german or spanish strings (for sample) in an english system fails ( á goes after z and so on).

       

      How can I set the locale before using localecompare to make sure it's correctly sorted in all languages despite the system locale ? Do i need to write my own sorting method ?

       

      Thanks