filter orderBy not supported persian language,
orderBy ignore letters "诏 趩 倬 跇".
Could you please create a live demo (e.g. using CodePen, plnkr etc), so we can reproduce and investigate the problem ?
demo : http://codepen.io/captianhamid/pen/grzZpM
correct sort is:
I have same problem.
angular ignore letters "诏 趩 倬 跇".
hi this problem for javascript. just solution overwrite sort and bind
賲賵賮賯 亘丕卮蹖丿
This is because of how JS orders the strings (in a locale-unaware way).
One could use String.prototype.localeCompare, but then you could get different results based on the user's locale.
Ideally, orderBy could accept a custom comparator function, so you could define your comparing logic there (and use localeCompare or whatever would produce correct results for your particular usecase).
Since this is not supported (yet :stuck_out_tongue:), you should create a custom filter.