Re #10172. Sort monitor group names.
Re #10172. Added a unit test.
Merge branch 'bugfix/10172_reorder_nexus_monitors' into develop