Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make shorter matches win when scores tie #902
Description of the Change
Recently, we added a change in https://github.com/atom/superstring/pull/37/files to remove a sorting ambiguity that occurred when scores tied. This has the added benefit of returning the shorter word first when scores tie. The change in this PR applies the same sorting scheme after the results from all buffers are merged together. This should fix item#1 in atom/superstring#36.
It's more intuitive for shorter words to appear first in the suggestion list if they tie in score with neighboring matches.
Maybe, this should be handled in the