better order on bestMatch sort function