changed the ordering field to use an primary key field.