fixed the logic to order Employees by available hours