sorting glyphs