fix sorting refactoring error. Now sorting should be fine with multiple scores for realsies