Jump to:

23486 Posts in 18995 Topics by 2878 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: 636 Views
  • elsbth
    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()?

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.