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
    Classification: Unclassified
   Mobile Platform: ---

Currently API:Query automatically sorts pages alphabetically.

So query like this|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

Reply via email to