Fix NoMethodError after editing an issue

The assigns.keys.sort call was raising the following error:

```
in `sort': undefined method `<=>' for :body:Symbol (NoMethodError)
```

This was on Ubuntu with `ruby --version`:

```
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
```