Fixed sortOnSpecifity sorting order.