Quantcast

Move another function around, to hell with local functions! RAWR

Ackis [11-25-08 - 19:46]
Move another function around, to hell with local functions! RAWR
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 4039201..de01c0d 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -213,6 +213,27 @@ end
 -- Expected result:
 -- Input:
 -- Output:
+
+local function SetSortString(recipeSkill, recStr)
+
+	local sorttype = addon.db.profile.sorting
+
+	if (sorttype == L["Skill"]) then
+
+		return "[" .. recipeSkill .. "] - " .. recStr
+
+	else
+
+		return recStr .. " - [" .. recipeSkill .. "]"
+
+	end
+
+end
+
+-- Description:
+-- Expected result:
+-- Input:
+-- Output:
 -- This does the initial fillup of the DisplayStrings structure.
 -- This won't run if all we're doing is expanding/contracting a recipe

@@ -406,27 +427,6 @@ end
 -- Input:
 -- Output:

-local function SetSortString(recipeSkill, recStr)
-
-	local sorttype = addon.db.profile.sorting
-
-	if (sorttype == L["Skill"]) then
-
-		return "[" .. recipeSkill .. "] - " .. recStr
-
-	else
-
-		return recStr .. " - [" .. recipeSkill .. "]"
-
-	end
-
-end
-
--- Description:
--- Expected result:
--- Input:
--- Output:
-
 function addon:CreateScanButton()

 	-- Create the scan button