builder.py: only sort ClassDefBuilder input glyphs if they are unsorted
builder.py: only sort ClassDefBuilder input glyphs if they are unsorted

This fixes broken tests after 9e76d16, and should finally close https://github.com/fonttools/fonttools/issues/766

googlefonts/fonttools,fonttools/fonttools