Commit 1ad700f
Fix code search sort order by sorting results in memory
- Sort search results by filename in PerformSearch function
- Applied to both indexed search (bleve/elasticsearch) and gitgrep fallback
- Uses SortStableFunc to preserve existing relevance-based ordering
- Ensures stable, alphabetical sort order for results with same relevance score
Co-authored-by: silverwind <115237+silverwind@users.noreply.github.com>1 parent b62f486 commit 1ad700f
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
0 commit comments