You can indeed do this by using BBEdit's "Sort Lines" command
together with a suitable grep pattern to isolate whatever
content you want to base the sort on.
For example, based on your current description and sample data,
please try this:
Choose Text -> Sort Lines to bring up the Sort Lines sheet, then
turn ON the options "Numbers match by value", "Sorted lines
replace selection", and "Sort using pattern" and enter a
"Searching pattern:" of
^.+?/(\d{2}).+?$
and "Specific sub-patterns:" of \1
This searching pattern will start matching at the beginning of
every line ^ and non-greedily match one or more characters .+?
up to a forward slash /, then capture the following two digits
\d{2} in this pattern's first (and only) sub-pattern by
enclosing them in parenthesis, and finally match a run of
characters .+? up to the end of the line $.
Then, when you run the Sort Lines command, BBEdit will capture
the contents of the first sub-pattern (specified by \1) from
each line, and sort the document based on those two-digit pairs.
(PS: This option is easier to use than to describe :-) so please
give it a try and let me know if you have any questions.)
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>
On 9/26/16 at 11:33 AM, [email protected] (Frere Roy) wrote:
I have some data that I would like to sort (reorder) on the
44th and 45th column which is the "month" field. 0912,05
Is this possible in BBedit
Maxxxxie Fxxxxg
29/09/1984 Mxxxxxs
xxxxter 29/12/1940
Mxxxe Gxxxxxv 29/05/1961
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.