Commits

Jason McKesson committed db627dd

Sorting functions/enums when generating lists.

Comments (0)

Files changed (1)

modules/LoadLuaSpec.lua

 			end
 		end
 	end
+	
+	--Sort functions and enums by name. Just for nicer presentation.
+	for extName, data in pairs(extdefs) do
+		table.sort(data.enums, function(lhs, rhs) return lhs.name < rhs.name end)
+		table.sort(data.funcs, function(lhs, rhs) return lhs.name < rhs.name end)
+	end
+
+	for version, data in pairs(coredefs) do
+		table.sort(data.enums, function(lhs, rhs) return lhs.name < rhs.name end)
+		table.sort(data.funcs, function(lhs, rhs) return lhs.name < rhs.name end)
+	end
 
 --[[	
 	local coreextsByVersion = spec.GetCoreExts()