Fixes bug 514.  accounts and commodities output now sorts

updated tests included.
Merge pull request #132 from enderw88/bug514-sort-accounts-and-commodities

Fixes bug 514.  accounts and commodities output now sorts