Last modified: 2013-12-04 13:55:35 UTC
It should be possible to change the order of statements inside an item.
*** Bug 44880 has been marked as a duplicate of this bug. ***
This might be two separate issues: ordering of statements of one property type, and ordering the various properties. About the latter: Is this actually necessary? Will every item need a custom listing order? Perhaps it would be better to add a "priority" property to property types, and list statements by that?
This could also be split in manual ordering, ordering on numeric id, and alphabetic sorting.
Another suggestion for ordering: sort them by usage - most uses properties first (http://www.wikidata.org/wiki/Wikidata:Database_reports/Popular_properties). I see this kinda working for person class of objects. That said, I would like to see a dropdown with various sorting options available. As of sorting property values - do wee need a way to indicate that person X was mostly known as a poet and did just a bit of jounalist or politician work? What would be the way to define that?
I would like the statements to be in a table format and the full table sortable on each column by the user. I suggested this at http://www.wikidata.org/wiki/Wikidata:Project_chat#Order_of_.22statements.22_and_duplicates
*** Bug 52393 has been marked as a duplicate of this bug. ***
@Papuass - The reason that *manually* ordering the statements is appealing is that it allows the people that are entering and curating the data to stick the properties in an order that allows them to curate easier. For example, I could have a script put the properties for every video game article into a specific order (ideally agreed to by the video game task force), so that a person curating the data could just look down the list of properties an item has and check them against a list of properties that item *should* have, without having to go digging back and forth through the page. Ultimately, if manually ordering statements isn't possible, at least having them appear in a fixed order (likely numerical) would allow for the same ease of finding, albeit without the ability to put properties into a logical order. Having it based on popularity is problematic because popularity can change, and this is only useful if the order is stable enough that it can be used in the manner I described.
Fixed order, alphabetically, by property id, or hard coded, should be easiest to implement. It has only one drawback that I can see: Newly added statements will change position at save, or at page reload. This is a minor issue imo. I suggest starting out by implementing a fixed order. The possibility to "override" this, either item by item, or depending on the type of item, can be added later.
I think the user should be able to change the order, and that it should change the key associated with the statement in the Lua table. Alphabetical order is not enough. See the architects in this infobox: https://fr.wikipedia.org/w/index.php?title=Arsenal_Stadium&oldid=97323308 The architect of the renovation appears before the architect of the original building, and that is hard to reliably fix through a client-side heuristic. Wikidata should directly provide a sensible order.
Order has to be defined by user in a specific user page. It is impossible to get an unique order for each class of items because there are several ways to treat data between the different wikipedias. The best way in my opinion is to create a tool/code which matches some class of items defined by the property "instance of" with a specific order given by the user.
I've made a javascript tool for my own use. Maybe it can be used for inspiration: //www.wikidata.org/wiki/User:Soulkeeper/statementSort.js
This functionality is available now: when moving the last or first statement of a statement group even further down or up, the whole group will change its position. This behavior should be re-thought when redesigning the UI because it is not very intuitive.
I have opened bug 57932 for that now. Closing this one.