Pivot left column sorting

Hello,

How can I sort the left column in the Pivot (which is the column that displays the fields which were selected as rows).

e.g. if I set a “date” field as the pivot’s group_by (i.e. “row”), how can I sort it in case other columns in the datatable are sorted? This column’s header is the Pivot configuration button, so I can’t bind a click to it (problem #1) and set a sort function (problem #2).

Thank you!

It is possible to sort the data by API call
http://webix.com/snippet/dc04f9e0

Adding it to UI is a bit more problematic, as click is already processed by the pivot itself. You can alter the text of the first column, injecting an active element, which will trigger sorting.

http://webix.com/snippet/1dd7ceb1