At 11.14 -0600 07-12-17, Errol Sayre wrote: >On Dec 17, 2007, at 9:23 AM, Alex Satrapa wrote: > >>On 14/12/2007, at 01:42 , Errol Sayre wrote: >> >>>Indeed, the Sort Lines.sh script in the Unix Filters palette uses the "-n" >>>option to sort strings by numerical value. >> >>Just be wary of misinterpreting the intent of command line options - "-n" >>causes sort to treat strings as numbers where they can be interpreted as such. > > >Rereading the original post... it seems Jacob wants the text to be sorted by >ASCII value...
I want to sort so that for every two succeeding lines a and b, in REALBasic, StrComp(a,b,0) will return -1 or 0 > >I put together this php script that can do that for you, just dump this in the >~/Application Support/BBEdit/Unix Support/Unix Filters/ folder and it'll be a >selection for you. > >http://errol.errolandanna.com/creations/SortLinesByEncodingValue.php.zip > >It's pretty simple, but _should_ do what you want. I just wrote this in PHP >because that's what I'm familiar with... > >Errol > > >-- >------------------------------------------------------------------ >Have a feature request? Not sure the software's working correctly? >If so, please send mail to <[EMAIL PROTECTED]>, not to the list. >List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> >List archives: <http://www.listsearch.com/BBEditTalk.lasso> >To unsubscribe, send mail to: <[EMAIL PROTECTED]> -- Jacob Palme <[EMAIL PROTECTED]> (Stockholm University and KTH) for more info see URL: http://www.dsv.su.se/jpalme/ -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
