Open qqmyers opened 4 years ago
@anncie-pcss - any thoughts?
Could it be done by the columnSorting ? https://github.com/GlobalDataverseCommunityConsortium/dataverse-previewers/blob/a0fcdf2f891cf6432ce2a59510e0ffe44b5c5e0f/previewers/js/spreadsheet.js#L36
I think that allows sorting of the rows by different columns (by clicking on the column name) rather than the order of columns - see https://handsontable.com/docs/8.0.0/demo-sorting.html#basic-plugin-configuration.
This is related to #14/ the fix for #14. For files with headers such as "Journal Name,3,1,Test", the fix for #14 now makes sure that the data appears in the right columns but the preview shuffles the order to put the numeric columns first. The attached file is an example. While Journal is the first column, the previewer shows columns '1','2', etc. first:![image](https://user-images.githubusercontent.com/6731983/66950993-74792d00-f027-11e9-886c-43e3f3d6ec83.png)
Gherghina & Katsanidou (2013DATA) Data Availability in Political Science Journals_33.tab.txt