Modified:
trunk/OptionHouse/OptionHouse.lua
Log:
OH: fix sorting bug
Modified: trunk/OptionHouse/OptionHouse.lua
==============================================================================
--- trunk/OptionHouse/OptionHouse.lua (original)
+++ trunk/OptionHouse/OptionHouse.lua Wed Nov 28 12:31:33 2007
@@ -420,8 +420,12 @@
local function sortCategories(a, b)
if( not b ) then
return false
+ elseif( not a ) then
+ return true
end
+ if not a.data then return true end
+ if not b.data then return false end
local aType = type(a.data.sortID)
local bType = type(b.data.sortID)