Fix sort, order, limit, and fields search query parameters. Add / update relevant tests and features.