Quantcast

Reversed queue ordering.

pschifferer [10-21-09 - 04:09]
Reversed queue ordering.
Filename
CauldronQueue.lua
diff --git a/CauldronQueue.lua b/CauldronQueue.lua
index 9f8054c..e7c81ce 100644
--- a/CauldronQueue.lua
+++ b/CauldronQueue.lua
@@ -81,7 +81,7 @@ function CauldronQueue:GetItems(queue)
 	end

 	-- sort the list
-	table.sort(items, function(r1, r2) return r2.priority < r1.priority; end);
+	table.sort(items, function(r1, r2) return r1.priority < r2.priority; end);

 	return items;
 end