fix DetachCriteriaSpec

fix for ordering results and one for deleteAll on a criteria.