gitlabhq/gitlabhq — pull request #1998 by erroric (2012-11-16 18:44:11+00:00)
Title: fix for issue #1669

fix for issue #1669

* fix projects sort order
* fix Postgresql Arel issue (details - https://github.com/gitlabhq/gitlabhq/issues/1669#issuecomment-10449471)
* improve query performance (subqueries vs joins)