DAO implementation for sorting requests. Removed unneeded parameters for sorting when getting requests count.
Fixed issue: when no sort columns are available then the last sort column is used.