Reverts r3072 (#4302: error raised when sorting on an association not included as column).
Authored by: jplang 2009-11-27
Parent: [r3096]
Child: [r3098]