Quantcast

In SortRecipeList(): If there is no matching sort function in RECIPE_SORT_FUNCS, default to Sort_Name().

James D. Callahan III [03-22-10 - 03:28]
In SortRecipeList(): If there is no matching sort function in RECIPE_SORT_FUNCS, default to Sort_Name().
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index e83f6ed..de0459d 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -403,11 +403,8 @@ do

 	-- Sorts the recipe_list according to configuration settings.
 	function SortRecipeList()
-		local sort_func = RECIPE_SORT_FUNCS[addon.db.profile.sorting]
+		local sort_func = RECIPE_SORT_FUNCS[addon.db.profile.sorting] or Sort_Name

-		if not sort_func then
-			return
-		end
 		local sorted_recipes = addon.sorted_recipes
 		twipe(sorted_recipes)