change sort order: height desc, points desc, wins desc, fee asc, version desc

This commit is contained in:
2026-07-10 10:16:43 -04:00
parent 756ab98c41
commit c9749bfed1

View File

@@ -371,7 +371,7 @@ function getFiltered() {
return allServers
.filter(d => withTor ? true : !d.onion)
.filter(d => (d.url + " " + (d.info||"")).toLowerCase().includes(q.toLowerCase()))
.sort((a, b) => (b.balance||0) - (a.balance||0) || (a.base_fee||0) - (b.base_fee||0) || (b.points||0) - (a.points||0));
.sort((a, b) => (b.last_block||0) - (a.last_block||0) || (b.points||0) - (a.points||0) || (b.count_win||0) - (a.count_win||0) || (a.base_fee||0) - (b.base_fee||0) || (b.version||'').localeCompare(a.version||''));
}
function render() {