Android sort ArrayAdapter with two line exceptions

I have ArrayAdapterwith Objects. I have currently sorted it using the comparison method. It works fine, but I have to switch to the entries in the first and second lines.

Can you help me by finding a good solution for this.

The list consists of category names. "Last Used" and "favs" should be at the beginning.

Should I search for these records after sorting, or will you do it at the same moment?

+4
source share

All Articles