avoid potentially pinning sort indexes in a query