Implement and test queries which combine filters and orders. Possibly still some bugs there. Will make tests more robust later.