> I have a long list of Json entries in the usual formatting key:value, > - for example : > > "UTB": "Cancel", > "ATB":"Delete", > > and so on - I need to sort them out alphabetically by value - like in > the example above are ok (c, d) even if the keys are not. > > Is there an option/regex on "sort line" that can help me with this > job? I am going insane trying to do it manually.
If that's literally what the data looks like, use the Sort Lines command, with the "Sort using pattern" option enabled: Searching pattern: ^(.*):(.*)$ Sort Using Specific sub-pattern: \2 Adjust the grep pattern as necessary if whitespace or quotes are causing a problem. Steve
-- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group.
