Page MenuHomePhabricator

Order Calendar events by start date in the list view
Closed, ResolvedPublic

Description

Events in Calendar lists are currently always ordered by ID descending. In particular, this means that events in the list view are not shown in the order they occur (soonest event first), but in the order they were created (newest first), which is surprising and counterintuitive for an event listing.

We should:

  • Support ordering by dateFrom, ascending ("Soonest First").
  • Make this the default (or maybe only) order for list views.

To do this:

  • PhabricatorProjectQuery is a reasonable example of a relatively simple Query which includes non-default ordering.
  • Implement getOrderableColumns(), getPagingValueMap(), and getDefaultOrderVector(), using start instead of name.