Sets don't have a welldefined comparison function, so sort them... Not the most efficient implementation, but good enough. Fixes https://github.com/fonttools/fonttools/issues/927