Added transaction sorting functions.
Added transaction filtering functions.
Some very minor tweaks.