We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be02bc commit 4f86ea4Copy full SHA for 4f86ea4
src/Export/Classes/RowListControl.lua
@@ -215,6 +215,18 @@ function RowListClass:ReSort(colIndex)
215
local valA = self:GetRowValue(colIndex, nil, a)
216
local valB = self:GetRowValue(colIndex, nil, b)
217
218
+ local isBlankA = valA == nil or valA == "" or tostring(valA):match("^%s*$")
219
+ local isBlankB = valB == nil or valB == "" or tostring(valB):match("^%s*$")
220
+
221
+ -- Always put blank items at the bottom
222
+ if isBlankA and not isBlankB then
223
+ return false
224
+ elseif not isBlankA and isBlankB then
225
+ return true
226
+ elseif isBlankA and isBlankB then
227
228
+ end
229
230
local numA = tonumber(valA)
231
local numB = tonumber(valB)
232
0 commit comments