Fixed lexical probability sorting issues.