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?

2
  • maybe take a look here: stackoverflow.com/questions/25662001/… Commented Jan 12, 2015 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. Commented Jan 13, 2015 at 17:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.