Urgent - Sorting Issue in Data Table - Empty Column Sorting the Data table

Hello,

I have a Data table, where I have few column where data is empty and the column is marked for sorting as well.

So even though the data is not available and if you click on sorting the data table is sorting.

It should not do a sorting, if there is no data in the column.

Please refer the snippet.
http://webix.com/snippet/5bc9523d

Technically, it’s not a bug, but the normal behavior of the sort:"string", as empty strings move up or down the list depending on the sorting direction.

You can avoid this by using sort:"int" (for the particular case) or any custom sorting function.

Thanks Listopad,

This behavior, I have already observed, but I can not make sort:int, because, the data will be always string, but my question here is, if the there is no data in the column, on what basis it is sorting and why it is sorting?.

if we want to restrict also , can you please share some demo code so that we can do the same.

The point is that the identical values are sorted randomly among themselves.

You can use the following code:

http://webix.com/snippet/eddf07a2