sortByNameButOtherAlwaysLast
Definition
-- @//lua/ge/extensions/ui/vehicleSelector/tileSorting.lua:159
function sortByNameButOtherAlwaysLast(...)
Callers
@/lua/ge/extensions/ui/gameplaySelector/tiles.lua
if aOrder == bOrder then
return tileSorting.sortByNameButOtherAlwaysLast({name = a.label}, {name = b.label})
end
-- Alphabetical with "Other..." always last
return tileSorting.sortByNameButOtherAlwaysLast({name = a.label}, {name = b.label})
end
@/lua/ge/extensions/ui/gridSelectorUtils/tilesModule.lua
if a.order == b.order then
return sortingModule.sortByNameButOtherAlwaysLast(a, b)
end
@/lua/ge/extensions/ui/gameplaySelector/tileSorting.lua
-- Base sorting function that puts "Other..." items last
local function sortByNameButOtherAlwaysLast(a, b)
local aName = a.Name or a.name or a.label or ""
if aSystem == bSystem then
return sortByNameButOtherAlwaysLast(a, b)
end
-- Both clustered, sort by name
return sortByNameButOtherAlwaysLast(a, b)
end
-- If no order, sort by name
return sortByNameButOtherAlwaysLast(a, b)
else
-- If no order, sort by name
return sortByNameButOtherAlwaysLast(a, b)
end
if aDate == bDate then
return sortByNameButOtherAlwaysLast(a, b)
end
function M.sortByNameButOtherAlwaysLast(a, b)
return sortByNameButOtherAlwaysLast(a, b)
function M.sortByNameButOtherAlwaysLast(a, b)
return sortByNameButOtherAlwaysLast(a, b)
end
@/lua/ge/extensions/ui/vehicleSelector/tileSorting.lua
-- Base sorting function that puts "Other..." items last
local function sortByNameButOtherAlwaysLast(a, b)
local aName = a.Name or a.name or a.label or ""
if aValue == bValue then
return sortByNameButOtherAlwaysLast(a, b)
end
if aYears == bYears then
return sortByNameButOtherAlwaysLast(a, b)
end
if aWeight == bWeight then
return sortByNameButOtherAlwaysLast(a, b)
end
if aTopSpeed == bTopSpeed then
return sortByNameButOtherAlwaysLast(a, b)
end
if aPower == bPower then
return sortByNameButOtherAlwaysLast(a, b)
end
if aWeightPower == bWeightPower then
return sortByNameButOtherAlwaysLast(a, b)
end
if a0To60 == b0To60 then
return sortByNameButOtherAlwaysLast(a, b)
end
if a0To100 == b0To100 then
return sortByNameButOtherAlwaysLast(a, b)
end
if aConfigTypeName == bConfigTypeName then
return sortByNameButOtherAlwaysLast(a, b)
end
function M.sortByNameButOtherAlwaysLast(a, b)
return sortByNameButOtherAlwaysLast(a, b)
function M.sortByNameButOtherAlwaysLast(a, b)
return sortByNameButOtherAlwaysLast(a, b)
end