Get the join promotion code (a bit more) correct when constructing joins for ordering.
Get the join promotion code (a bit more) correct when constructing joins for ordering.

Yes, this really is a commit that fixes an oversight in a commit that fixed an
oversight. One day I'll get it right.


git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@8829 bcc190cf-cafb-0310-a4f2-bffc1f526a37

FlaPer87/django-nonrel,FlaPer87/django-nonrel,FlaPer87/django-nonrel,aparo/django-nonrel,aparo/django-nonrel,aparo/django-nonrel