Action to sort 3 state check boxes -> [ ], [x], { }, {-}, {x}

Hi everyone,
I have made my first action, and posted it to the directory.
Hope this is of use to some of you out there.

Basically it will sort your checklists. If you have multiple lists in the draft, it will keep those lists separate.
There were already actions that sorted [ ], and [x]. This action will still work for those.
However I needed a way to also sort check lists for { }, {-}, {x} to keep track of ongoing items

I am not experienced in coding.
In fact this is the first time I have coded anything in my life. But I have used this actions may times now, and it should work fine.
I cannot promise updates according to requests, but any feedback are welcome.
Further details below…

Here is the link to the action

Description
This action is a modified version of “Move Checked to End” by zisoft
But made to also work with “- { }”, “- {-}”, “- {x}” type checkboxes

this version will…

  • move checked items “- [x]” & “- {x}” to the end of a list
  • move ongoing items “- {-}” to the beginning of a list,
    but after regular text
    while maintaining list sections, if you have multiple lists in 1 document
    move indented items with the parent task (indented items will not be sorted)
    • do NOT indent your parent items

*intended to be used with @agiletortoise 's "simple list”, "simple list+”, or “markdown” type syntaxes

<< instructions >>

  • if you would like to change the order, modify line #91
  • a break for a check list is any line with
    • blank line
    • only spaces and tabs
    • starts with letters and no spaces before the letters
    • if you need to indent your list title, add a blank line above it

[Before]
Title

  • { } test 1
  • {-} test 2
  • [x] test 3
    • [ ] indent 3-1
      indent 3-2
    • {-} indent 3-3
  • {x} test 4
  • {-} test 5

[After]
Title

  • {-} test 2
  • {-} test 5
  • { } test 1
  • [x] test 3
    • [ ] indent 3-1
      indent 3-2
    • {-} indent 3-3
  • {x} test 4

original action heavily referenced : Move Checked to End | Drafts Directory
“Move Checked to End” by zisoft
original documentation // See online documentation for examples
Scripting - Drafts User Guide