diff --git a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua index e92926fbaa..fcb1d71d1f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Likability/LikabilityManager.lua @@ -92,10 +92,14 @@ function this.GetAllItemsData() table.insert(list,data) end table.sort(list,function(a,b) - if a.property == b.property then - return a.id < b.id + if a.Quantity == b.Quantity then + if a.property == b.property then + return a.id < b.id + end + return a.property < b.property + else + return a.Quantity > b.Quantity end - return a.property < b.property end) return list end