diff --git a/src/js/slaveListing.js b/src/js/slaveListing.js index 77221bf1b939725123a3e1a612f160695aaf0683..7027cc784ad839ff48128cb701fcecdc0dcd10fe 100644 --- a/src/js/slaveListing.js +++ b/src/js/slaveListing.js @@ -565,7 +565,7 @@ App.UI.SlaveList.sortingLinks = function(passage) { const textify = string => capFirstChar(string.replace(/([A-Z])/g, " $1")); let innerDiv = App.UI.DOM.makeElement("div", "Sort by: ", "indent"); - let order = ["devotion", "name", "assignment", "seniority", "actualAge", "visualAge", "physicalAge", "weeklyIncome", "health", "weight", "muscles", "intelligence", "sexDrive", "pregnancy"] + let order = ["devotion", "trust", "name", "assignment", "seniority", "actualAge", "visualAge", "physicalAge", "weeklyIncome", "health", "weight", "muscles", "intelligence", "sexDrive", "pregnancy"] .map(so => V.sortSlavesBy !== so ? App.UI.DOM.passageLink(textify(so), passage, () => { V.sortSlavesBy = so; }) : textify(so)); innerDiv.append(App.UI.DOM.generateLinksStrip(order)); diff --git a/src/js/utilsSlaves.js b/src/js/utilsSlaves.js index e122efa1e4df20ecabef0d853c1d9361ee00f3d1..200ad07fb943ed607c16ca35dd8d5397bd7272bb 100644 --- a/src/js/utilsSlaves.js +++ b/src/js/utilsSlaves.js @@ -44,6 +44,8 @@ globalThis.SlaveSort = function() { DphysicalAge: (a, b) => b.physicalAge - a.physicalAge, Adevotion: (a, b) => a.devotion - b.devotion, Ddevotion: (a, b) => b.devotion - a.devotion, + Atrust: (a, b) => a.trust - b.trust, + Dtrust: (a, b) => b.trust - a.trust, AID: (a, b) => a.ID - b.ID, DID: (a, b) => b.ID - a.ID, AweeklyIncome: (a, b) => a.lastWeeksCashIncome - b.lastWeeksCashIncome,