Fixes bug 514.  accounts and commodities output now sorts

updated tests included.

This should be independent of all other patches I have submitted.  My git-fu is improving.