diff --git a/apps/common/main/lib/collection/Fonts.js b/apps/common/main/lib/collection/Fonts.js index 8058dc271..b52e1fe96 100644 --- a/apps/common/main/lib/collection/Fonts.js +++ b/apps/common/main/lib/collection/Fonts.js @@ -48,12 +48,6 @@ define([ 'common/main/lib/model/Font' ], function(Backbone){ 'use strict'; Common.Collections.Fonts = Backbone.Collection.extend({ - model: Common.Models.Font, - comparator: function(item1, item2) { - var n1 = item1.get('name').toLowerCase(), - n2 = item2.get('name').toLowerCase(); - if (n1==n2) return 0; - return (n1 b.name.toLowerCase()) ? 1 : -1; - }); - this.fontsArray = array; } resetFontName (font) { diff --git a/apps/presentationeditor/mobile/src/store/textSettings.js b/apps/presentationeditor/mobile/src/store/textSettings.js index 524a26b15..7f4b50f26 100644 --- a/apps/presentationeditor/mobile/src/store/textSettings.js +++ b/apps/presentationeditor/mobile/src/store/textSettings.js @@ -75,11 +75,6 @@ export class storeTextSettings { type : font.asc_getFontType() }); } - - array.sort(function(a, b) { - return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1; - }); - this.fontsArray = array; } diff --git a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js index a06ba3ea6..a715a2353 100644 --- a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js @@ -139,11 +139,6 @@ export class storeCellSettings { type : font.asc_getFontType() }); } - - array.sort(function(a, b) { - return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1; - }); - this.fontsArray = array; } diff --git a/apps/spreadsheeteditor/mobile/src/store/textSettings.js b/apps/spreadsheeteditor/mobile/src/store/textSettings.js index b17cb0ca7..69ca28d45 100644 --- a/apps/spreadsheeteditor/mobile/src/store/textSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/textSettings.js @@ -78,11 +78,6 @@ export class storeTextSettings { type : font.asc_getFontType() }); } - - array.sort(function(a, b) { - return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1; - }); - this.fontsArray = array; }