Search results should be ordered
Is your feature request related to a problem? Please describe. The search results are not ordered, so I need to skim the list to find the correct entry. This is especially a problem for Wiktionary, where many words are very similar to each other (share the stem).
For example, in the German Wiktionary 2022-05-24 Pic, searching apf gives Apfelteilern - apfelartig - äpfelndern - Apfelgarten.
For example, in the Italian Wikivoyage 2022-03-21 Pic, serching new gives New Orleans - New Jersey - New Hampshire - New Boston - New Island
However for the English Wiktionary 2022-03-01 Pic apparently I always get ordered results and I cannot explain why.
Describe the solution you'd like The search results lists should be ordered.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
The situation is unchanged in the latest version.
@MohitMaliFtechiz I will assess the ticket.
hi @opk12 ,
Current result after sorting search result.
Its sorting the search result.
| Keyword | search Result |
|---|---|
| new | ![]() |
| apf | ![]() |
The search results are not ordered, so I need to skim the list to find the correct entry. This is especially a problem for Wiktionary, where many words are very similar to each other (share the stem).
They are ordered, but maybe not like you want. It seems you want them ordered alphabetically and they are ordered by pertinence.
I think your ticket is legitimate, but I have no solution in mind for the moment. Might take quite a bit before we can close this ticket, but thank you for creating it anyway.
For clarity to my future self: what is called current result above by MohitMaliFtechiz is the result of the non-merged PR 3093 linked above.
I will move ultimatively to openzim/libzim, where the sorting of results is decided. We have many tickets related to how results should be sorted. I believe that at the end, the way how we index and ponderate resukts should allow to get this alphabetical order. But we shoukd fix/organize this in MWoffliner.

