diff options
author | codecalm <codecalm@gmail.com> | 2020-03-25 18:26:56 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-25 18:26:56 +0100 |
commit | 5a6d2c46e95cb0054c0b47afb6cb69b2465cebbb (patch) | |
tree | 55771aae5d249c78bab6dcbb2fd498b83edfa219 /gulpfile.js | |
parent | iconfont fix (diff) | |
download | tabler-icons-5a6d2c46e95cb0054c0b47afb6cb69b2465cebbb.tar.xz |
iconfont sort fix
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js index 0461d49b..fa37ce37 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); }); |