Re #10172. Sort monitor group names.
Re #10172. Added a unit test.
Merge remote-tracking branch 'origin/bugfix/10172_reorder_nexus_monitors'