fix error in leave request model, ordered leave types in leave requests.