Enhance sorting rules.