This discussion is archived
2 Replies Latest reply: Jan 30, 2013 4:55 AM by James_D RSS

Sorting in TableView

user2932712 Newbie
Currently Being Moderated
I want to use the sorting functionality in a TableView (so the little arrows, the sort order, etc), but I don't want to sort using a comparator over the table contents.

Specifically when the user clicks the little arrow key for sorting, I would like to run a query over a database to get the new sorted data, and then populate the table with the results of this query.

So I want my columns to be sortable, have the arrows, have a sort order, etc, but I want to write my own sorting, and not use the comparator methods provided by the TableView.

Can this be done?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points