Support specifying ``sort_dir`` key in packages.search call

Required to implement 'Previous Page' button at App Catalog page
in dashboard.

Change-Id: I9dc110be02e3aaf47c4c876569d01029da48359e
Targets: blueprint normalize-dashboard-pagination
Merge "Support specifying ``sort_dir`` key in packages.search call"