sort tags to make it predictable