﻿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
32811	Annotate removes Meta.ordering	pirelle	nobody	"This is very simplified example 

{{{
In [5]: str(Order.objects.values(""id"", ""ordered_at"").all().query)
Out[5]: 'SELECT ""orders_order"".""id"", ""orders_order"".""ordered_at"" FROM ""orders_order"" ORDER BY ""orders_order"".""ordered_at"" DESC'

In [6]: str(Order.objects.values(""id"", ""ordered_at"").annotate(c=Count(""id"")).all().query)
Out[6]: 'SELECT ""orders_order"".""id"", ""orders_order"".""ordered_at"", COUNT(""orders_order"".""id"") AS ""c"" FROM ""orders_order"" GROUP BY ""orders_order"".""id""'
}}}
As you can see ORDER BY disappears when annotate with Count exists.
It used to work on 3.0, but stopped working in 3.1 and 3.2
"	Bug	closed	Database layer (models, ORM)	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
