keep `categories` sorted by name, and category entries sorted by `label` (both case-insensitive)