use a TreeMap for storing tags so they're sorted

A little extra readability for the tag list.