set bbed_sortPattern to "^(\\w+)(-.)? (.')?(\\w+){1}(-\\w+)?"
set bbed_sortSubPattern to "\\3\\4\\1\\2"
tell application "BBEdit"
tell text of front text window
set listSorted to sort lines it sorting options {match pattern:bbed_sortPattern, sort subpattern:bbed_sortPattern} output options {replacing target:true}
end tell
end tell
The script debugger dictionary says that it should be "sorting options {sort pattern:" but Script Debugger stubbornly translates it as "sorting options {match pattern"; the problem does not seem to come from this.
I would like to see an Applescript with the correct wording! Thank you