Verify that the table starts sorted by "SCORE" descending, "ISSUE" ascending, and that the "PRODUCT" column is sortable but not currently sorted.
Click the up/down/up-down icons to sort by columns
Open the URL in a new tab and verify that the updated sorting is preserved- not just which columns are sorted, but also the order in which they are sorted
Export a pdf and verify that the sorted table in the pdf matches the page
Export csv and verify that the rows are sorted in the same way as the table.
Known issues:
The table has grown into a cluster, I'm aware that the sorting data is stored in 4 places which is ridiculous. But the correct fix for that is a complete refactor of the table to split the layer handling into a wrapper and turn the table back into a "dumb" non-topcoat component, plus a refactor of the export to csv component- both of which are far outside the scope of this PR. I will tackle those refactors ASAP, so if you see anything here please feel free to call it out- I will make a note of it even if it falls outside of the scope of this sorting PR.
Goal: provide server-side sorting that is done in the sql to the table.
To test:
Known issues: The table has grown into a cluster, I'm aware that the sorting data is stored in 4 places which is ridiculous. But the correct fix for that is a complete refactor of the table to split the layer handling into a wrapper and turn the table back into a "dumb" non-topcoat component, plus a refactor of the export to csv component- both of which are far outside the scope of this PR. I will tackle those refactors ASAP, so if you see anything here please feel free to call it out- I will make a note of it even if it falls outside of the scope of this sorting PR.