When sorting by acquire method, if we're sorting a custom string, we'll sort them by their custom string ID first. This will get all minor inscription together for example.
ackis [08-30-09 - 14:20]
When sorting by acquire method, if we're sorting a custom string, we'll sort them by their custom string ID first. This will get all minor inscription together for example.
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 5bc3552..33f1bf8 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -1415,8 +1415,15 @@ do
local reca = RecipeDB[a]["Acquire"][1]
local recb = RecipeDB[b]["Acquire"][1]
if (reca and recb) then
+ -- Both acquire methods are the same
if (reca["Type"] == recb["Type"]) then
- return RecipeDB[a]["Name"] < RecipeDB[b]["Name"]
+ -- If we have a custom string for sorting
+ if (reca["Type"] == 8) then
+ -- Sort on the ID of the custom string so they get grouped together
+ return RecipeDB[a]["Acquire"][1]["ID"] < RecipeDB[b]["Acquire"][1]["ID"]
+ else
+ return RecipeDB[a]["Name"] < RecipeDB[b]["Name"]
+ end
else
return reca["Type"] < recb["Type"]
end
diff --git a/Docs/CHANGES.txt b/Docs/CHANGES.txt
index 3133f21..b3dc320 100644
--- a/Docs/CHANGES.txt
+++ b/Docs/CHANGES.txt
@@ -14,6 +14,7 @@
*Fixed a map/mini-map coordinate display issue
*All professions have skill level data added (exception being cooking and JC)
*Added the ability to customize which type of points you see on the mini-map (vendor, quest, trainer, mob). By default trainer will be off, the rest will be on.
+*Sorting via acquire method will now sort the special strings (aka discoveries) together.
===RC10
*Significantly reduced memory usage over time.