esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Sorting with null values #895

Open teo89 opened 8 years ago

teo89 commented 8 years ago

I have the follow list var simpleList = [{name:"a"},{name:null},{name:"l"},{name:"o"}];

and I saw that sorting didn't behave correctly it was display "o" name last and null before "o" but the correct it will be null be the last one. If you have name :"" then sorting is ok. But we can't convert all values from back end to empty string from null. ng-table_issue

This is example from demo of ng-table with the given simpleList instead : http://codepen.io/christianacca/pen/VLROaW?editors=1010#0