I have tables containing data in reverse chronological order. I'd like it to be chronological so I'm thinking I can just move the table rows around.
Seems like it would require a separate scratch file to hold the re-ordered rows until all rows have been copied, then replace the selection with the re-ordered rows.
I.e., Take the last table row (cutting or removing it) from the selection and move it to the scratch area.
Take the last table row and move it to the end of the scratch area. Lather, rinse, repeat until all rows have been cut from the original Then move the scratch contents to the original document.
I'm guessing that Perl is the best tool for this job. It has a reverse function so I'm guessing that the original selection could be read into an array, using "<tr" and "/tr>" as delimiters, then regurgitated in reverse order of the original.
Anyone have something like this lying around or an example showing how to get table rows into an array?
-- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group.
Jul 05
Doug McNutt Re: Flip a Table
Jul 05, 2010; 11:08
Doug McNutt
Re: Flip a Table
Jul 05
Bill Rowe Re: Flip a Table
Jul 05, 2010; 12:48
Bill Rowe
Re: Flip a Table
Jul 05
John Delacour Re: Flip a Table
Jul 05, 2010; 13:48
John Delacour
Re: Flip a Table
Jul 05
Robert A. Rosenberg Re: Flip a Table
Jul 05, 2010; 13:42
Robert A. Rosenberg
Re: Flip a Table
Jul 05
Warren Michelsen Re: Flip a Table
Jul 05, 2010; 13:21
Warren Michelsen
Re: Flip a Table
Jul 05
Warren Michelsen Re: Flip a Table
Jul 05, 2010; 17:49
Warren Michelsen
Re: Flip a Table
Jul 06
John Delacour Re: Flip a Table
Jul 06, 2010; 01:41
John Delacour
Re: Flip a Table
Jul 06
Warren Michelsen Re: Flip a Table
Jul 06, 2010; 07:11
Warren Michelsen
Re: Flip a Table
Jul 06
Patrick Woolsey Re: Flip a Table
Jul 06, 2010; 09:56
Patrick Woolsey
Re: Flip a Table
Jul 06
Warren Michelsen Re: Flip a Table
Jul 06, 2010; 10:11
Warren Michelsen
Re: Flip a Table
Jul 06
John Delacour Re: Flip a Table
Jul 06, 2010; 10:51
John Delacour
Re: Flip a Table
Jul 06
Patrick Woolsey Re: Flip a Table
Jul 06, 2010; 11:44
Patrick Woolsey
Re: Flip a Table
Jul 06
Warren Michelsen Re: Flip a Table
Jul 06, 2010; 12:48
Warren Michelsen
Re: Flip a Table
Jul 07
LuKreme Re: Flip a Table
Jul 07, 2010; 12:12
LuKreme
Re: Flip a Table
Jul 09
John Delacour Re: Flip a Table
Jul 09, 2010; 14:37
John Delacour
Re: Flip a Table
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!