kaspiana / mage

A command-line tool for cataloguing images (particularly digital art), styled after Git.
0 stars 0 forks source link

Query result order #26

Closed kaspiana closed 3 months ago

kaspiana commented 3 months ago

It should be possible to choose how the results of a query are ordered when they are reflected in the view.

Idea 1

An --order option on the search which the user can supply with arguments such as date, alphabetic, etc. --asc and --desc options would be necessary as well.

mage search "rose_lalonde" --order date --desc

Idea 2

(Perhaps more convenient, but less sensible) Pseudo-tags supplied in the query string itself.

mage search "rose_lalonde order:date_desc"
kaspiana commented 3 months ago

Idea 1 is likely best, as these same options could be allowed anywhere that a view will be created.

kaspiana commented 3 months ago

There is at present nothing meaningful to sort on apart from ID and file name, the latter of which is a bizarre use case, and so this is low priority. I imagine it will be useful if document ranking is implemented.

kaspiana commented 3 months ago

Rankings have been implemented and so this is a priority, as they are somewhat useless without search ordering.