Sort accounting categories by id.
Remove accounting categories when is_revenue is selected.

Closes #9.