Tern addon rename bug fixed

If you are trying to rename a variable and the variable is occurred several times in one line, rename does not work correctly. To prevent this, tern addon "sort" the changes in descending order, but there was an error on the sort.