Closed CharlesPMG closed 1 year ago
Hi! I guess that's because there is already an order (sent by the frontend). Can you check in the input
object?
You can remove any existing order with:
@RequestMapping(value = "/employees", method = RequestMethod.GET)
public DataTablesOutput<Employee> list(@Valid DataTablesInput input) {
input.getOrder().clear();
input.addOrder("age", true);
return employeeRepository.findAll(input);
}
Though in that case, any specific ordering requested by the frontend will be ignored.
Closed due to inactivity, please reopen if needed.
I have this class that just return the DataTableOutput, I want to add order desc on the Id column In my view, It doesnt order by this id.