Sort routes first by netmask, then by metric.

Metric is used to break ties between routes with the same size netmask.