Fixes the sort of rule numbers in a cluster.