Fix reorder metrics states on compact procedures.

6 jobs for !6789 with fix-avs-metrics-state-reorder in 14 minutes and 53 seconds (queued for 3 seconds)
latest merge request