Sorted the domains in the bounds by their registers plus label (if
provided).