TracksApp/tracks — pull request #112 by zoombody (2012-10-04 15:19:59+00:00)
Title: Don't sort todos when counting them

Grouping isn't as lax in PostgreSQL as it is in MySQL or SQLite. All
sort fields also need to be in the GROUP BY, or be aggregated. The order
isn't relevant when counting, so simply don't order in that case.

Fix #1336