How to get selectedItem with sorting in Datatable

I use nice plugin webix datatable and dataview (ver 3.3.17) in my website.

I know how to get users selecting rows : getSelectedItem function.
http://docs.webix.com/api__link__ui.dataview_getselecteditem.html

In case multiple selection,
It is different list getSelectedItem function returns and showed screen about sorting.

for example

screen showed (name is sorted)

name : A B C D E F G

I select “C D E F G” with shift key.

But getSelectedItem function returns “D G C E F” and so on.

How to get selectedItem with sorting in Datatable&Dataview?
(I want same list in showed screen. )

Thank you for your information.

The getSelectedItem method always returns the items in their original order of selection.

The only way I can suggest is to apply a custom sorting function to the array of the selected items (regarding the actual order of the datatable rows).

You can get current order through the

$$("dtableId").data.order

Thank you for your information!!

I developed like this.

$$(“dtableId”).data.order

@akiofukuda perhaps I must apologize for the incorrectness, as I’ve missed the key words in the previous answer.

Thus, the method returns the items in their original order of selection and sorting has nothing to do with it.