query params saved in a var, orderBy again with selects