Fix NoMethodError after editing an issue

The assigns.keys.sort call was raising the following error:

in `sort': undefined method `<=>' for :body:Symbol (NoMethodError)