Add primary key to 'ORDER BY' clause, because with POSTGRES rows are returned in a  not deterministic way if sorting field is not unique