diff --git a/fonts.js b/fonts.js index 808553ce9..ebbd0c0b8 100644 --- a/fonts.js +++ b/fonts.js @@ -1656,7 +1656,7 @@ CFF.prototype = { }; charstrings.sort(function charstrings_sort(a, b) { - return a.unicode > b.unicode; + return a.unicode - b.unicode; }); return charstrings; },