aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 0461d49..fa37ce3 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -257,6 +257,11 @@ gulp.task('iconfont', function () {
//glyphs json
let glyphsObject = {};
+ //sort glypht
+ glyphs = glyphs.sort(function(a, b){
+ return ('' + a.name).localeCompare(b.name)
+ });
+
glyphs.forEach(function (glyph) {
glyphsObject[glyph.name] = glyph.unicode[0].codePointAt(0).toString(16);
});