add sort ordering clause to prevent intermittent spec failure
update gemfile for appraisals