Simplify id sorting.  Sort tags when modified.