Android sort ArrayAdapter with exceptions for two rows

Viewed 131

I have an ArrayAdapter with Objects. Currently I sorted it with a compare-method. It works fine, but I have to switch to elements of the entries to the first and second row.

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 look for these entries after sorting, or would you do this at the same moment?

0 Answers
Related