As far as I can tell, this is not possible via the API directly. However, you can get the order of properties from MediaWiki:Wikibase-SortedProperties, and sort the response you get accordingly. If you’re using Lua, there’s also the mw.wikibase.getPropertyOrder() and mw.wikibase.orderProperties( propertyIds ) functions.

2017-11-28 19:22 GMT+02:00 Vladimir Ryabtsev <greatvovan@gmail.com>:
I find the order of claims on web site useful, but when requesting entity data through API (action=wbgetentities) it got lost.
How the claims are ordered on an entity web page and how to restore the order in API response?

--
Vlad

Без вирусов. www.avast.ru

_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech




--
Lucas Werkmeister
Software Developer (Intern)

Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin
Phone: +49 (0)30 219 158 26-0
https://wikimedia.de

Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment.

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207.