1

I'm attempting to establish default order by / sort order on two string columns in ng-grid , but the default action is to throw null values to the bottom regardless of asc / desc.

If I want null values to be displayed first, is there a built-in option I'm missing similar to Oracle SQL's "nulls first"? If not, any quick tips on writing such an external sort?

pdjonak
  • 23
  • 3
  • maybe take a look here: http://stackoverflow.com/questions/25662001/angular-sorting-with-null-objects – Brendan Hannemann Jan 12 '15 at 22:07
  • Thanks, that link helps in pre-ordering the array before ng-grid. Have to play around (possibly with external sorting) in ng-grid to find out how to maintain that as once a user sorts by a column, there's no "third state" on the sort to turn it off and return to my original order. – pdjonak Jan 13 '15 at 17:40

0 Answers0