ISchwarz23 / SortableTableView

An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Apache License 2.0
1.05k stars 239 forks source link

How to pin row to top? #169

Closed c0dehunter closed 5 years ago

c0dehunter commented 5 years ago

I want to always show a certain row with certain value on top of the table as first row regardless of current sorting. I modified the comparator for one column to always return 1 (should mean it is always the "biggest" value). It works, but when I click to sort based on another column, the same doesn't work again.

Any way to do this?

c0dehunter commented 5 years ago

I got it sorted the way I described. I just needed to put the checks to all comparators.