removed bug where sorted can produce an arbitrary ranking that is scored highly by accident