diff --git a/js/all.js b/js/all.js index 1cee1a1..c715ab2 100644 --- a/js/all.js +++ b/js/all.js @@ -3051,6 +3051,13 @@ }; })(this)), orderby === "modified" ]); + this.menu_settings.items.push([ + "Order sites by site titles", ((function(_this) { + return function() { + return _this.handleOrderbyClick("title"); + }; + })(this)), orderby === "title" + ]); this.menu_settings.items.push([ "Order sites by add time", ((function(_this) { return function() { @@ -3824,6 +3831,10 @@ rows.sort(function(a, b) { return b.row.settings.modified - a.row.settings.modified; }); + } else if (Page.local_storage.sites_orderby === "title") { + rows.sort(function(b, a) { + return (b.row.content.title > a.row.content.title) - (a.row.content.title > b.row.content.title); + }); } else if (Page.local_storage.sites_orderby === "addtime") { rows.sort(function(a, b) { return (b.row.settings.added || 0) - (a.row.settings.added || 0); @@ -4237,4 +4248,4 @@ window.Page.createProjector(); -}).call(this); \ No newline at end of file +}).call(this);