Merge pull request #38 from ledgersmb/1.4

Merge pull request #183 from einhverfr/1.4
Restored sorting for reports, added numeric and date sorting handles to PGNumber and PGDate
Merging 1.4 from github
Merge pull request #185 from einhverfr/1.4

Fixing sorting on reports