Changed default order from id to rownum for oracle legacy database.