From 01d53b50b987e5a961afdca11679d0b312b445e4 Mon Sep 17 00:00:00 2001 From: Ackis Date: Wed, 29 Oct 2008 20:38:07 +0000 Subject: [PATCH] Ackis Recipe List: - Fix for error in ticket 160 - Dry-coded (Compiles with luac -p) --- AckisRecipeList.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index afffbf7..4bb27d1 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1782,6 +1782,8 @@ do if (not sortFuncs) then + sortFuncs = {} + sortFuncs[L['Skill']] = function(a, b) return RecipeDB[a]["Level"] < RecipeDB[b]["Level"] @@ -1812,6 +1814,7 @@ do end + -- Will only sort based off of the first acquire type sortFuncs[L["Location"]] = function (a, b) return (string.match(RecipeDB[a]["Locations"],"(%w+),") < string.match(RecipeDB[b]["Locations"],"(%w+),")) -- 1.7.9.5