Text Editor: Sorted search results for document type
Request
Sort the Document Type dialog search results by match closest to the beginning, followed by alphabetically (already the sorting algorithm).
Examples
Position
The position number I use is the number of characters preceding the first character in the search string. Searching "He" would have a position of 0 in "Hello", a position of 1 in "These".
Searching "Ru"
Current results:
- reStructuredText - "Ru" in position 4
- Ruby - "Ru" in position 0
- Rust - "Ru" in position 0
Requests results
- Ruby - "Ru" in position 0 (alphabetically before "Rust", the other result with the same position)
- Rust - "Ru" in position 0
- reStructuredText - "Ru" in position 4
Searching "Sh"
Current results:
- C# (CSharp) - "Sh" in position 1
- CG Shader Language - "Sh" in position 7
- Fish - "Sh" in position 2
- F# (FSharp) - "Sh" in position 1
- OpenGL Shading Language - "Sh" in position 3
- PowerShell - "Sh" in position 5
- sh - "Sh" in position 0
Requests results
- sh - "Sh" in position 0
- C# (CSharp) - "Sh" in position 1 (alphabetically before "F#", the other result with the same position)
- F# (FSharp) - "Sh" in position 1
- Fish - "Sh" in position 2
- CG Shader Language - "Sh" in position 3
- PowerShell - "Sh" in position 5
- OpenGL Shading Language - "Sh" in position 7