Prevents DS regexes with non-consecutive order from generating invalid CRconfig/Snapshot (#4910)

* Making sure we have only one regex per order, and the missing orders dont show up as nulls

* go fmt

* Code review fixes

* changelog entry

* Add comment

* formatting
5 files changed