Sorting in API without order
|Reported by:||SteveG||Owned by:|
|Component:||Core||Keywords:||API sorting order|
It is nice, that it's adjustable to sort the API-responses as needed.
Is there a reason why filter_sort_column and filter_sort_order have both to be given in a request to get it sorted. I would expect that sorting a column without a given order behaves like any database and orders asc by default.
It's not realy a bug, but i just wondered why sorting didn't apply without filter_sort_order.
I guess it's easy to change this. Giving a default value for filter_sort_order in core/API/DataTableGenericFilter.php should fix it.