Closed jum-s closed 9 months ago
to be merged after #383 [edit: merged]
@jum-s could you rebase it on master now that #383 is merged?
its rebased, no conflict
could also add alphabetical order to the PR
see issue https://github.com/inventaire/inventaire-client/issues/98
related issue https://github.com/inventaire/inventaire/issues/315
solving #114 (5yrs old 🎂 )
The main difficulty was to handle the different sorting by default server side, to be able to recover the initial state of the page. Harmonization server side could have made sense at first sight, but having an agnostic client which store the initial entities sorting felt more future proof, although saving initial server sorting felt like overkill. So instead, the client always treat the entities order as
publicationDate
sorting by default for entity types that a havewdt:P577
claims, otherwise no sorting is possible by the user (ie. P69 humans)), else the default sorting is by popularity.