Description
Improve ht table sorting implementation and typing.
During #2010 it was noted that the default sort order is not sent to the backend but has been implicit in certain cases. Sorted in backend by default by priority descending, the frontend showed the correct column descended but did not actually send the sorting parameter to the backend.
This means there was an implicite connection between frontend and backend.
Solution: Type the column properly and use the same 'dataKey' (what is sent to the backend) also as column id that is sorted (what is shown in the table up/down arrow) and also type the dataKey.
The 'dataKey' should only be a valid column/attribute name of an entity.
Description
Improve ht table sorting implementation and typing.
During #2010 it was noted that the default sort order is not sent to the backend but has been implicit in certain cases. Sorted in backend by default by priority descending, the frontend showed the correct column descended but did not actually send the sorting parameter to the backend.
This means there was an implicite connection between frontend and backend.
Solution: Type the column properly and use the same 'dataKey' (what is sent to the backend) also as column id that is sorted (what is shown in the table up/down arrow) and also type the dataKey.
The 'dataKey' should only be a valid column/attribute name of an entity.