Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Sorting search results - #320

Closed
muan wants to merge 8 commits into
masterfrom
muan/sort-search-results
Closed

muan wants to merge 8 commits into
masterfrom
muan/sort-search-results

Conversation

@muan

@muan muan commented Dec 6, 2014

Copy link
Copy Markdown
Contributor

Fixes #64. 😬

Before

image

After

image

Would be nice to do some benchmarking on how this effects performance. I can potentially try figuring that out myself, but help would be mucho appreciated ❤️

It's also probably debatable if item.dataset.path > filePath is the best sorting mechanism. For example in the screenshot, it probably makes more sense if lib/select-next.coffee comes before lib/project/*, as Sublime does.

@muan

muan commented Dec 6, 2014

Copy link
Copy Markdown
Contributor Author

⭐ item.dataset.path > filePath -> (item.dataset.path).localeCompare(filePath) >= 0

muan added 7 commits August 11, 2015 11:56
as they come in, instead of appending everything to the end
of creating another array to figure that out
By making a mark when screen is filled with results and
only add more results to above the fold if the insertPoint
is above the fold.
Results in a higher alphabetical order should be
inserted to the top no matter what
@benogle
benogle force-pushed the muan/sort-search-results branch from e7d13f1 to e5da082 Compare August 11, 2015 18:56
@benogle benogle closed this in #485 Aug 11, 2015
@muan
muan deleted the muan/sort-search-results branch August 12, 2015 12:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Results are not sorted

3 participants