Sorting Page collection by RE match of frontmatter Param

just found that one which which does it similar but less complicated.

depending on the number of pages the one or other may perform better.