another macro
discriminator-based sorting for all integer types
vector-based discriminators