kohana/orm — pull request #80 by svakak (2013-04-18 21:01:43+00:00)
Title: Ignore order_by when counting records using count_all

PostgreSQL does not allow sorting by column that is not selected. Furthermore, it does not make any sense to sort counted records.