Jump to:

22975 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Special chars in wrong order when DataObject::get

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 591 Views
  • elsbth
    Avatar
    Community Member
    8 Posts

    Special chars in wrong order when DataObject::get Link to this post

    I'm making a site with muliple languages (swedish, english, german, russian, french) and want to get databojects in alphabetical order when i write
    $myObjects = DataObject::get('MyObject', '', 'Name ASC');

    Example: When i get dataobjects with swedish names the letters å (&aring) and ä (ä) are treated like the letter a, and ö (ö) is treated like the letter o. å, ä, ö are the last three letters in the swedish alphabet and the objects come in the wrong order.

    What can I do to get the right order from DataObject::get()?

    591 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.