Sort switch cases by name