fixed payroll sorting issue