DRY sorting style enum and remove magic numbers