dataprovider: reset orderBy when counting

strict sql dbms like postgres would fail otherwise