Skip to content
Merged
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
18 changes: 10 additions & 8 deletions src/Classes/MinionSearchListControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local MinionSearchListClass = newClass("MinionSearchListControl", "MinionListCon
"Sort by Life",
"Sort by Energy Shield",
"Sort by Attack Speed",
"Sort by Base Damage",
"Sort by Companion Reservation",
"Sort by Spectre Reservation",
"Sort by Fire Resistance",
Expand Down Expand Up @@ -93,14 +94,15 @@ function MinionSearchListClass:sortSourceList()
[3] = { field = "life", asc = false },
[4] = { field = "energyShield", asc = false },
[5] = { field = "attackTime", asc = true },
[6] = { field = "companionReservation", asc = true },
[7] = { field = "spectreReservation", asc = true },
[8] = { field = "fireResist", asc = false },
[9] = { field = "coldResist", asc = false },
[10] = { field = "lightningResist", asc = false },
[11] = { field = "chaosResist", asc = false },
[12] = { field = "totalResist", asc = false },
[13] = { field = "baseMovementSpeed", asc = false },
[6] = { field = "damage", asc = false },
[7] = { field = "companionReservation", asc = true },
[8] = { field = "spectreReservation", asc = true },
[9] = { field = "fireResist", asc = false },
[10] = { field = "coldResist", asc = false },
[11] = { field = "lightningResist", asc = false },
[12] = { field = "chaosResist", asc = false },
[13] = { field = "totalResist", asc = false },
[14] = { field = "baseMovementSpeed", asc = false },
}
local sortModeIndex = self.controls.sortModeDropDown and self.controls.sortModeDropDown.selIndex or 1
local sortOption = sortFields[sortModeIndex]
Expand Down