4 ms·
The UI needs to be such so as to make the users understand that by clicking a column header they would be sorting the results of a previous query rather than re
by seemslegit 6y ago
The UI needs to be such so as to make the users understand that by clicking a column header they would be sorting the results of a previous query rather than re-running it with a different sort column and that the two are not generally interchangeable, likewise with instant in-results search.
At least with the server being on the internet and the example setup I disagree that the current way is faster or even near a modern webui
- simonw 6y agoCan you think of a way I could make that clear in the UI ("this will sort all of the data including the rows you can't see" v.s. "this will sort the rows that are visible to you right now")?
- seemslegit 6y agoI think this is the natural expectation of anyone familiar with spreadsheets, reporting tools or data grids with sortable column headers, but a message along the lines of "Sorting results of the previous query, click 'Run SQL' button again to query with ${column_name} as the ORDER BY column" and a "got it" hyperlink to be stored in your session state store of choice upon first click on a column header would probably make it clear.
- Swannie 6y agoI tend to disagree. I find that data/UI tools that only sort the visible results, and not re-populate the paged view of the data, extremely counter-intuitive. Even old libraries like ExtJS supported easy re-querying the server upon the column sorting event - though it has to be said, many lazy implementers didn't use this feature.
- anitil 6y agoI'd like to add, you're doing a great job of listening to this feedback, despite it's tone. I'm not sure I'd do the same, so well done. Of course, I love Datasette, so thank you for your work on it.