fix order by pkey