Descending sort on existing table
See original GitHub issueThere should be a way to sort a column by descending order on an existing table.
Maybe by adding data-desc
on the th
or something.
Issue Analytics
- State:
- Created 11 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
SELECT FROM table in DESCENDING ORDER of a column
To sort rows of a result set in descending order of values in a column, use the syntax of the following SQL Query....
Read more >SQL ORDER BY Keyword - W3Schools
The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword....
Read more >Ascending Order with SQL Order By - freeCodeCamp
ORDER BY syntax ... This is the basic syntax to sort your data in ascending order: SELECT columns FROM table ORDER BY column;....
Read more >SQL - ORDER BY - GeeksforGeeks
The ORDER BY statement in SQL is used to sort the fetched data in either ascending or descending according to one or more...
Read more >How to Sort in SQL | LearnSQL.com
Problem: You would like to sort the result of an SQL query in ascending or descending order. Example: Our database has a table...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah, is it correct that you would like to have button that always sorts the list
desc
orasc
.In the next version of the script I’ve added a feature so that you can write
<button data-sort="name" data-order="desc">Sort name desc</button>
.Would that solve your issue?
I want to set the sorting order on each button, if I eg set
desc
order on one, I want it to sortdesc
on the first click and thenasc
on the next and so on. Buttons should not share sorting state.As long as they don’t share sorting state, yes.