FIX: sort() requires a comparator that returns a number, not a bool