Closed conficient closed 9 years ago
Just checked my version and it's 0.0.21 so it's current - I saw the recent commit relating to nulls.
I've been playing with the sort and it's actually worse than this, it's not even consistent - the blank entries shift around in the order each time I sort.
Created a Fiddle to demonstrate this: http://jsfiddle.net/Quango/zhe7nexg/9/
Thanks @conficient. Check out this updated fiddle
I'll push out a new version later (assuming all ok!)
Thanks for the fast turn-around on a fix Steve. Looks fine to me.
Any suggestion why I'm getting this behaviour using the sortBy binding?
The array contains plain JavaScript objects, and I am sorting on the date field, which is stored as a string. Some values contain a null (I have represented as [null] here) but it seems to corrupt the sorting. I would expect null values to either go at one end or the other, not in the middle!