Fixed similarity / grademark sorting