Y.DD
is Drag and Drop. This would help only if you want to drag the columns to sort them.
This is one way of programmatically sorting the columns.
I haven't read the documentation for Y.DataTable, but you can sort the columns
attribute, subscribe to the columnsChange
event and then make the datatable re-render*.