reorder rule for better groupings.