This commit is contained in:
be5invis 2023-10-21 16:07:17 -07:00
parent 272e5a4f2d
commit aa23e2ec99

View file

@ -404,7 +404,7 @@ function byTagPreference(a, b) {
ub = b.tag.toUpperCase(); ub = b.tag.toUpperCase();
if (ua < ub) return -1; if (ua < ub) return -1;
if (ua > ub) return 1; if (ua > ub) return 1;
return 0; return a.rank - b.rank;
} }
function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) { function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) {
const cvs = AnyCv.query(glyph).sort(byTagPreference); const cvs = AnyCv.query(glyph).sort(byTagPreference);