My goal is to apply 2 sorts on a list of objects made of string and boolean.

I have accounts and active/inactive states, so I want to show active first (sort boolean values) and then to sort rest of elements in alphabetical order.

For instance:

[John,inactive], [Craig,active], [Mike,inactive], [Dennis,innactive]

I want to have:

[Craig,active], [Dennis,innactive], [John,inactive], [Mike,inactive]

What I plan to do is to use Comparable<> but I wonder if there is another way to do that.

I don't want to use Guava or any additional libraries.
This should be used for Android API 21 as well, so list.sort() cannot be used.

Thanks in advance!