From 9fd22fa1e82d760568f24bda2cf4651b4055651a Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 15 Oct 2022 14:02:20 -0400
Subject: [PATCH] found the missing part

---
 src/js/slaveListing.js | 2 +-
 src/js/utilsSlaves.js  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/js/slaveListing.js b/src/js/slaveListing.js
index 2b9f0d6edbf..21dde175a0f 100644
--- a/src/js/slaveListing.js
+++ b/src/js/slaveListing.js
@@ -548,7 +548,7 @@ App.UI.SlaveList.sortingLinks = function(passage) {
 	const textify = string => capFirstChar(string.replace(/([A-Z])/g, " $1"));
 
 	let span = App.UI.DOM.makeElement("span", "Sort by: ");
-	let order = ["devotion", "trust", "name", "assignment", "seniority", "actualAge", "visualAge", "physicalAge", "weeklyIncome", "health", "weight", "muscles", "intelligence", "sexDrive", "pregnancy", "prestige"];
+	let order = ["devotion", "trust", "name", "assignment", "seniority", "actualAge", "visualAge", "physicalAge", "weeklyIncome", "beauty", "health", "weight", "muscles", "intelligence", "sexDrive", "pregnancy", "prestige"];
 	const orderMap = order.map(so => {
 		return {key: so, name: capFirstChar(so)};
 	});
diff --git a/src/js/utilsSlaves.js b/src/js/utilsSlaves.js
index e8c802cec96..904442e40f8 100644
--- a/src/js/utilsSlaves.js
+++ b/src/js/utilsSlaves.js
@@ -57,8 +57,8 @@ globalThis.SlaveSort = function() {
 		DID: (a, b) => b.ID - a.ID,
 		AweeklyIncome: (a, b) => a.lastWeeksCashIncome - b.lastWeeksCashIncome,
 		DweeklyIncome: (a, b) => b.lastWeeksCashIncome - a.lastWeeksCashIncome,
-		ABeauty: (a, b) => Beauty(a) - Beauty(b),
-		DBeauty: (a, b) => Beauty(b) - Beauty(a),
+		Abeauty: (a, b) => Beauty(a) - Beauty(b),
+		Dbeauty: (a, b) => Beauty(b) - Beauty(a),
 		Ahealth: (a, b) => a.health.health - b.health.health,
 		Dhealth: (a, b) => b.health.health - a.health.health,
 		Aweight: (a, b) => a.weight - b.weight,
-- 
GitLab