Quantcast

Make the bindings list slightly more stable

James Whitehead II [07-29-11 - 15:26]
Make the bindings list slightly more stable
Filename
BindConfig.lua
diff --git a/BindConfig.lua b/BindConfig.lua
index 76f52d7..bc719e4 100755
--- a/BindConfig.lua
+++ b/BindConfig.lua
@@ -331,7 +331,11 @@ compareFunctions = {
     end,
     binding = function(a, b)
         local mem = memoizeBindings
-        return mem[a] < mem[b]
+		if mem[a] == mem[b] then
+			return compareFunctions.name(a, b)
+		else
+			return mem[a] < mem[b]
+		end
     end,
 }