sortorder now fixed and deletes now save to db