Sorts a list of items according to this sort order.
List<T> sort(List<T> items) { final sorted = List<T>.from(items); sorted.sort(compare); return sorted; }