Update QMetric.py

Repaired bug in sorting.