Hi Isomorphic,
I checked out some samples in the 13.1d showcase again. Please see the UnionDataSource-sample (SNAPSHOT_v13.1d_2023-09-13).
At first it seems the data is not sorted correctly.
Please try the following:
Add dataProperties: {fetchMode: "local"} to the sample and you will see that now on sorting descending the first rows have values.
I think your clientside sorting is asc -> nulls first and desc -> nulls last (is this true?), which comes more apparent if you also add useClientSorting:false to dataProperties.
Then it's always a server call and never values on top, as this is the HSQLDB default behavior.
But it seems HSQLDB also supports your clientside asc -> nulls first and desc -> nulls mode via sql.nulls_order: false. Perhaps this should be set in your showcase server.properties.
Postgres already defaults to your client side sort, I think. See here ("By default, null values sort as if larger than any non-null value; that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise.").
Best regards
Blama
I checked out some samples in the 13.1d showcase again. Please see the UnionDataSource-sample (SNAPSHOT_v13.1d_2023-09-13).
At first it seems the data is not sorted correctly.
Please try the following:
- Start sample
- Scroll down and find some rows with "Agency Name" entries (the sample description also says that they exist)
- Restart sample
- Click "Agency Name" to sort ascending by agencyName
- No entries with "Agency Name" on top
- Click "Agency Name" again to sort descending by agencyName
- No entries with "Agency Name" on top
Add dataProperties: {fetchMode: "local"} to the sample and you will see that now on sorting descending the first rows have values.
I think your clientside sorting is asc -> nulls first and desc -> nulls last (is this true?), which comes more apparent if you also add useClientSorting:false to dataProperties.
Then it's always a server call and never values on top, as this is the HSQLDB default behavior.
But it seems HSQLDB also supports your clientside asc -> nulls first and desc -> nulls mode via sql.nulls_order: false. Perhaps this should be set in your showcase server.properties.
Postgres already defaults to your client side sort, I think. See here ("By default, null values sort as if larger than any non-null value; that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise.").
Best regards
Blama
Comment