Sorting tables in reverse order
Sorting tables in reverse order
ismamartinez
Posts: 8Questions: 0Answers: 0
Hi!
You can see my example here:
http://americantipster.com/?page_id=43
What I would like is the tables to show up on the vertical reverse order, I mean 5, 4, 3, 2, 1 ... and when I add a 6 it should be on top, and the same when I add a 7, and on and on...
What do I have to change?
Thanks in advance!
Isma
You can see my example here:
http://americantipster.com/?page_id=43
What I would like is the tables to show up on the vertical reverse order, I mean 5, 4, 3, 2, 1 ... and when I add a 6 it should be on top, and the same when I add a 7, and on and on...
What do I have to change?
Thanks in advance!
Isma
This discussion has been closed.
Replies
Allan
And if you could tell me the code to show the whole table the [asc] order would be awesome!
Thanks!
Allan
https://www.dropbox.com/s/20qdghipjad027t/table.png
And this the code I added:
https://www.dropbox.com/s/wvcnh64i44a1ufk/code.png
But it doesn't sort in reverse order.
1. What is `A` ? It should be a column index like the documentation says
2. Why is there a closing brace? Does whatever plug-in you are using need that?
Allan
1. A is the column I want to lead the sorting. Which one is the column index I should use?
2. I took off the brace and didn't work either. The plugin I am using is TablePress.
> ReferenceError: Can't find variable: A
Replace it with a 0 - i.e. the column index.
http://awesomescreenshot.com/0bb2cqoy90
but still looking the same.
> "bSort":false
But you want a sort?! :-)
To be shown as ...,5,4,3,2,1
Allan
http://awesomescreenshot.com/0422ctcl1b