Welcome to WebmasterWorld Guest from 54.198.113.206

Forum Moderators: incrediBILL

Message Too Old, No Replies

Reverse Table Row Order?

     
3:55 pm on Jan 6, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 22, 2004
posts: 113
votes: 0


Hi
Is there a program (for OS X), a GUI HTML editor that can reverse the row order of a table? I have a very long static (not from database) table that I put in chronological order. Upon great reflection, I see that reverse chronological order is more... logical. I'm trying to avoid manually doing the reversing by copying row after row and pasting it on the other side of the document. GoLive can do basic sorting but now a row reversal. Dreamwaver can't either from what I can see. Anyone know of anything else?
4:25 pm on Jan 6, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:July 5, 2005
posts:352
votes: 0


I don't have an answer to your question but I do have another suggestion;

Google JavaScript Table Sorting [google.ca]

Let your users decide how to order the table. Just a thought.

5:20 pm on Jan 6, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Maybe open web page in MS Word. Then you can highlight just the table and use Word's "sort" function, under the Table menu.
7:35 pm on Jan 6, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


If you can give me the table I can sort it for you really quick with a script I have. If not, however, I understand.
1:01 pm on Jan 7, 2009 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 5, 2006
posts:3323
votes: 20


You can paste a table straight into a spreadsheet and sort there then save as html. Clean up the code a bit (OK, a lot if you are using Excel)and paste back into your page.
5:20 pm on Jan 8, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 22, 2004
posts:113
votes: 0


Yeah I ended up just exporting it as a .csv file, opening it in NeoOffice... adding an incrementing id field, then sorting by this new field descending, then deleting hte field, and importing the .csv back into golive. I had to clean it up a lot though, lots of things got put into their own row that shouldn't have. Oh well its all good now. Thanks.