Skip to content

Issue 1481 - Body → Chapter (required) Descending date order

Duncan Bennett requested to merge 1481-order-by-date-desc into develop

feat(server): order chapters by date desc

#1481 (closed)

I'm making this one available for QA while write the unit tests.

Adds configuration of the "most recent" drop down option. Adds "date_desc" order by option for "Division" and "BookComponent". Adds support for a "field" callback function to "OrderModel"; this allows us to specify fallback sort columns.

Updates the "ui" book row so that it knows which fields to check when determining whether a row is missing "date_desc" order by data.

I still have to write unit tests for the following:

  • Confirm that valid dates are sorted in descending order
  • Confirm that invalid dates are ignored
  • Confirm that these dates are used in order of preference: "publication date", "updated date" and "created date"

Related to #1481 (closed)

Edited by Sidorela Uku

Merge request reports