aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-25 18:26:56 +0100
committercodecalm <codecalm@gmail.com>2020-03-25 18:26:56 +0100
commit5a6d2c46e95cb0054c0b47afb6cb69b2465cebbb (patch)
tree55771aae5d249c78bab6dcbb2fd498b83edfa219 /gulpfile.js
parenticonfont fix (diff)
downloadtabler-icons-5a6d2c46e95cb0054c0b47afb6cb69b2465cebbb.tar.xz
iconfont sort fix
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 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);
});