https://bugzilla.wikimedia.org/show_bug.cgi?id=60706
Web browser: ---
Bug ID: 60706
Summary: Option to get API:Query results unsorted
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Currently API:Query automatically sorts pages alphabetically.
So query like this
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&export=&titles=Orange|Apple|Banana
Will return pages in following (alphabetical) order: Apple, Banana, Orange
I see a lot of cases when it's handy, but there are also cases, when you don't
want API to sort results and would prefer it to return pages in order requested
(e.g. Orange, Apple, Banana).
I suggest, some kind of API key be added to query options, requesting NOT to
sort results (e.g. nosort).
If you need actual example, when sorting does more harm then good, I'm querying
DjVu pages from Wikisource, and I'm requesting pages in following order:
Book/99|Book/100|Book101, and response I get is Book/100, Book/101, Book/99.
Sorting can be good, and can be bad, and we need an option to get results in
order they were requested.
I believe it shouldn't be hard to implement.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l