hawtio / hawtio-ui

Hawtio UI widgets for hawtio 2.x see http://ui.hawt.io/
Apache License 2.0
7 stars 6 forks source link

allow ascending/descending to be specified on a column's default sort order in simple data table #2

Closed jstrachan closed 8 years ago

abkieling commented 8 years ago

@jstrachan , do you mean you would like to add an optional "ascending=true|false" property to the "columnDefs" items, so when the user clicks on the column header, we use that property to sort the data?

abkieling commented 8 years ago

@jstrachan , sorting isn't working on the Name, City, and Twitter columns of the hawtio-simple-table example. What's missing?

jstrachan commented 8 years ago

@alexkieling yeah - it'd be nice to specify the ascending=true/false on the columnDefs.

You're right the test table is a bit broken from a sorting perspective; also reverse sorting doesn't seem to work! Looks like something's a bit broken with the sorting!