More reasonable sorting of groups: sort by vector distance from origin
in primes-space.