Support for metagroup ordering.