Is there no buildin comparator for booleans? Like ...
# getting-started
k
Is there no buildin comparator for booleans? Like there is
nullFirst
for nulls.
h
Boolean itself implements
Comparable<Boolean>
, so all natural-order sorting should just work (sorting
false
first).
k
Damm how didn't I think about that. Thanks!