From 9504f83e158b0d2bb30cdbb4c80fe40fd0d031b6 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 14 Nov 2009 18:04:53 +0000 Subject: [PATCH] Fix the sorting of higher button options --- CliqueOptions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index 561feb9..f86e827 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -1044,13 +1044,13 @@ function Clique:ListScrollUpdate() end local sortFunc = function(a,b) - local numA = a.button - local numB = b.button + local numA = tonumber(a.button) or 0 + local numB = tonumber(b.button) or 0 if numA == numB then return a.modifier < b.modifier else - return tostring(numA) < tostring(numB) + return numA < numB end end -- 1.7.9.5