UC-2284 - Postgres queries using LIMIT/OFFSET must use ORDER BY