Fixes #7. Re-sort elements after editing todo item