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 https://www.wikidata.org/wiki/MediaWiki:Wikibase-SortedProperties, and sort the response you get accordingly. If you’re using Lua, there’s also the mw.wikibase.getPropertyOrder() https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getPropertyOrder and mw.wikibase.orderProperties( propertyIds https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.orderProperties ) https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.orderProperties 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
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Без вирусов. www.avast.ru https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#m_-3502740646293738920_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech