codinguser/gnucash-android — pull request #205 by fefe982 (2014-09-12 01:43:22+00:00)
Title: Rewrite SQL to retrieve recent accounts

The App never displayed the correct recent accounts for me (after 1.4, not sure about before).

In `fetchRecentAccount`, `DISTINCT` does not work very well with `ORDER BY` when the column in `ORDER BY` is not selected.

So I rewrote the SQL to use `GROUP BY` instead of `DISTINCT`. Now I can get the recent account correctly. And the accounts are sorted by time-stamp instead of alphabetically.