Fix sorting

This commit is contained in:
be5invis 2023-10-14 14:54:47 -07:00
parent 308785cf4d
commit 50a9f00caa
2 changed files with 9 additions and 1 deletions

View file

@ -429,7 +429,10 @@ function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) {
existingFeatures.set(gr.tag, series);
}
const featureApp = { css: `'${gr.tag}' ${gr.rank}`, description: gr.description };
const featureApp = {
css: `'${gr.tag}' ${String(gr.rank).padStart(2)}`,
description: gr.description
};
if (!series.groups[gr.groupRank]) series.groups[gr.groupRank] = [];
series.groups[gr.groupRank].push(featureApp);
}