Case insensitive sorting in Ember CLI SOLVED


#1

How do you enable case insensitive sorting? Is it native or do we need an Ember CLI add-on for natural sort?

My not sorting correctly code:

Example: http://exmer.com/bloggrcouch/authors


#2

I found this stackoverflow answer but don’t know how to overwrite orderBy yet.


#3

This seems to work:

sortFunction: function(i1,i2) {
    console.log(i1,i2);
    return 1;
  },

#4

Solved with sortFunction: