﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5188	archive_index shouldn't do explicit ordering	James Bennett	nobody	"Currently, the date-based `archive_index` and `archive_year` (when `make_object_list` is `True`) generic views use explicit calls to `order_by` to re-order the `QuerySet` they receive. There are two problems with this:

 1. They do it inconsistently: `archive_index` sorts by `date_field` ''descending'', while `archive_year` sorts by `date_field` ''ascending''.
 2. In doing so, they override any ordering specified by the model or already applied to the `QuerySet`, reducing their flexibility.

For sake of consistency with each other and with the other date-based generic views, and to restore the flexibility of allowing the user to choose how the `QuerySet` will be ordered, both views should stop trying to do an explicit `order_by`."		closed	Generic views	dev		duplicate			Design decision needed	1	0	0	0	0	0
