Sort null values first then 0 or ""

Hello,

I would like to know if there is a way to distinguish null values and 0 or “” values, because it appears that in a datatable, null,0 and empty values are considered the same, leading in different and confusing sorting each time.
I would prefer showing null values on top/bottom then 0/"" values.

Snippet: http://webix.com/snippet/76376ed9

Try to click multiple times on “Votes” and see the sorting result differs, mixing 0 and null values.

Cheers!

Hello,

Unfortunately, built-in Webix sorting method won’t distinguish these values, so the only way is to create your own complex method of comparison.

Yes I did my custom sorting function like this : http://webix.com/snippet/788fef7d

It is working now, thanks!