Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -4237,4 +4248,4 @@

window.Page.createProjector();

}).call(this);
}).call(this);