[tern addon] Fix bug in sorting of changesets