Claims of the same rank should be grouped together and these groups should be ordered by rank. (preferred first, then normal, then deprecated)
See also: T74297: [RFC] Have API return and accept lists instead of maps to maintain order
Claims of the same rank should be grouped together and these groups should be ordered by rank. (preferred first, then normal, then deprecated)
See also: T74297: [RFC] Have API return and accept lists instead of maps to maintain order
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdlrobson | T78430 [Epic] Getting Wikidata to render nicely on mobile web | |||
Open | None | T158181 Aim for workflow equivalence for MediaWiki on desktop and mobile web | |||
Open | None | T95878 [Story] Make Wikidata editable on mobile web | |||
Open | None | T95649 Create and document a stable framework for extending the Wikibase UI | |||
Stalled | None | T40968 Keyboard-navigability of the repo UI | |||
Open | None | T54136 [Epic] Redesign Item UI for Wikidata repo | |||
Open | None | T87316 [Story] Redesign statement section | |||
Open | None | T87327 [Story] Group statements within statement group by ranks | |||
Resolved | None | T51120 implement ranks for statements | |||
Invalid | None | T59666 [Task] Ensure normalized ordering of claims and snaks in the API | |||
Invalid | None | T74297 [RFC] Have API return and accept lists instead of maps to maintain order |
Daniel has been working on sorting in the backend: https://gerrit.wikimedia.org/r/98888
Summary of feature discussion with Lydia, Henning, Tobi and me:
For reference, the algorithm for normalizing the order of claims. It's based on bubble sort, since that is simple, stable, works well on almost-sorted input, and can easily be adopted to partial sorting:
First pass, grouping by property id (done for claims, qualifiers, and snaks in references):
Second pass, grouping by rank (done only for Statements):
Note how the original, user defined order of properites as well as the original ordering inside property/rank groups is maitained.