﻿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
24814	Unable to order_by an ArrayField element.	Matthew Schinckel		"It seems logical that, given a model Foo, with ArrayField bar, we should be able to (using the same rules for querying), perform:

{{{
    Foo.objects.order_by('bar__0')
}}}

However, this does not work. Is this something that _should_ be made to work?

It is possible to perform this query using an OrderBy(RawSQL()) thing, but that's a bit hard to figure out.

It's worth pointing out that the same limitation applies to Hstore fields, and will apply to JSON fields.

At the very least, this should perhaps be documented?"	Uncategorized	closed	contrib.postgres	1.8	Normal	duplicate			Unreviewed	0	0	0	0	0	0
