Merge pull request #36 from ledgersmb/master

bringing up to date
Restored sorting for reports, added numeric and date sorting handles to PGNumber and PGDate

--HG--
extra : source : 917ba3871f1417e87b2a99bc23ee715a2e6c9c0d
Merging master from github
Merge pull request #186 from einhverfr/master

fixing sorts on reports