... where T
is the generic type of the TableView
.
I'm implementing a file-listview with three columns, so far. Each of type java.nio.file.Path
. For the name column, I wrote a Comparator<Path>
which sorts the files with directories-first and case-insensitiv. The other two comparators sort by last-modified-time and file-size. For this they compare on long
fields.
But the comparatorProperty
of a column is based on Comparator<String>
. Which, I think, sorts based on the displayed text...
So I have to find a way, to use the sort-on-header-click feature with the type of the TableView
?
```. So I had ```TableColumn```, instead of ```TableColumn```, for example. After I had changed this, I could use ```Comparator```. Thank you. :) – Christian Rädel Aug 19 '15 at 10:23