From 23d4d83b1a2730e7dffe098a9e616157faefc41c Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 16 Mar 2010 01:16:07 -0400 Subject: [PATCH] Commented most of Sort_Acquisition() until it can be re-written for the new acquire_data design. --- Frame.lua | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Frame.lua b/Frame.lua index 4cf07cd..30089cf 100644 --- a/Frame.lua +++ b/Frame.lua @@ -391,26 +391,26 @@ do -- Will only sort based off of the first acquire type local function Sort_Acquisition(a, b) - local reca = recipe_list[a]["Acquire"][1] - local recb = recipe_list[b]["Acquire"][1] - - if not reca or not recb then - return not not reca - end - - if reca.type ~= recb.type then - return reca.type < recb.type - end - - if reca.type == A.CUSTOM then - if reca.ID == recb.ID then - return recipe_list[a].name < recipe_list[b].name - else - return reca.ID < recb.ID - end - else +-- local reca = recipe_list[a].acquire_data[1] +-- local recb = recipe_list[b].acquire_data[1] + +-- if not reca or not recb then +-- return not not reca +-- end + +-- if reca.type ~= recb.type then +-- return reca.type < recb.type +-- end + +-- if reca.type == A.CUSTOM then +-- if reca.ID == recb.ID then +-- return recipe_list[a].name < recipe_list[b].name +-- else +-- return reca.ID < recb.ID +-- end +-- else return recipe_list[a].name < recipe_list[b].name - end +-- end end local function Sort_Location(a, b) -- 1.7.9.5