static L<S> ai_sortCategoriesBySize(Collection<S> l) {
  ret sorted(l, ai_smallerCategoryComparator());
}