Fix Paginator ordering in MariaDB based on DDC-2593