Page MenuHomePhabricator

Sorting API categorymembers results by timestamp, newest first
Closed, ResolvedPublic

Description

Author: ais523

Description:
Further to bug 10890, is it possible to efficiently return category members sorted by timestamp in descending order? Scripts and bots would find it more useful to be able to check the most recent addition/recategorisation to/in a category, rather than the least recent.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmcategory=Physics&cmprop=timestamp&cmsort=timestamp

Details

Reference
bz11275

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:55 PM
bzimport set Reference to bz11275.

Re-assigning to self as a reminder. I'll implement this later today.

Fixed in r25726. I added a cmdir parameter that can be set to asc (ascending) and desc (descending), for both timestamp and sortkey sorting.