You can do it in AppleScript, operating on selected text in BBEdit if you want. 
This isn’t the one-liner that the Unix people are giving you but it still works:

tell application "BBEdit"
        set myDoc to document 1
        set mySelection to the selection
        set theList to contents of lines of mySelection
        
        set newOrder to ""
        
        repeat with aParagraph in theList
                set newOrder to aParagraph & return & newOrder
        end repeat
        set selection to newOrder
end tell



> On Mar 8, 2021, at 9:14 AM, Ted Stresen-Reuter <[email protected]> wrote:
> 
> Hi,
> 
> I know this can be done but am not finding the solution.
> 
> Given:
> 
> Lingo (Macromedia Director)
> AppleScript
> HyperTalk
> HTML
> JavaScript
> Perl
> SQL
> Bash
> HTTP
> PHP
> CSS
> Visual Basic
> ASP (Classic)
> XML
> XSLT
> jQuery
> Fusebox for PHP
> WordPress
> Laravel
> React
> AlpineJS
> 
> I'd like to end up with a list with the items in the reverse order, so, along 
> the lines of:
> 
> AlpineJS
> React
> Laravel
> WordPress
> Fusebox for PHP
> etc.
> 
> Note that the sort criteria is the order the lines appear in in the input. 
> Can't BBEdit do this?
> 
> Thanks in advance.
> 
> Ted Stresen-Reuter
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit <https://twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/CAKAQjifrOD%3DkExWSCng3LHxaVVmWoaRJgFLeWf6j5fSnM7WqUQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/bbedit/CAKAQjifrOD%3DkExWSCng3LHxaVVmWoaRJgFLeWf6j5fSnM7WqUQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

—

Socially distantly yours,

‌ <https://christianboyce.com/>‌

Check out our latest blog posts!

‌• How to make and use Shortcuts in iOS 
<https://christianboyce.com/how-to-make-and-use-shortcuts-in-ios/>

• How to get your AOL email working again on your iPhone, iPad, and Mac 
<https://christianboyce.com/make-aol-work-again-iphone-ipad/>

• Can’t send mail from Mac Mail app? Here’s a fix. 
<https://christianboyce.com/cant-send-mail-mac-mail-app-fix/>

• One-handed quick-swipe method for deleting email on an iPhone 
<https://christianboyce.com/quick-swipe-delete-email-iphone/>

• How to opt in to the COVID-19 Exposure Notification Express system on an 
iPhone 
<https://christianboyce.com/opt-in-covid-19-exposure-notification-express-system-iphone/>

• How to use Widgets in iOS 14 
<https://christianboyce.com/widgets-tutorial-ios14/>

• Change the way thumbnails look in the iOS Photos app 
<https://iphoneinaminute.com/change-the-way-thumbnails-look-in-the-ios-photos-app/>

‌

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0A6DB43C-D01B-4FE0-A209-A2431D2FDCD9%40christianboyce.com.

Reply via email to