Fix the metrics sorting in menu