ome / omero-gallery

https://pypi.org/project/omero-gallery/
GNU Affero General Public License v3.0
5 stars 15 forks source link

Sort search results #43

Open will-moore opened 5 years ago

will-moore commented 5 years ago

Currently the /gallery/search/ page doesn't sort the search results. It just filters and studies remain in their original order (sorted by name in reverse order).

Probably want to sort, with the best-matching studies at the top, as we do with the auto-complete results (if the input matches at the beginning of a word, rank higher).

E.g. from @francesw Search for Name:1 should show idr0001 first. Could handle filter with an 'ID' as a special case, similar to search in webclient.