These checks do not need to require that the group expressions be listed in index component order -- in theory, an index on (A, B, C) could be used for "GROUP BY (B, A).