From eab84e0d09fc83d11e80c28815c0512aa24c01b7 Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Wed, 12 Sep 2018 21:59:36 +0200 Subject: [PATCH] Arsenal - Fix sort by value not sorting properly (#6570) * Fix sort by value not sorting properly * Change single to double quotes * Remove uneeded space --- addons/arsenal/functions/fnc_sortPanel.sqf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addons/arsenal/functions/fnc_sortPanel.sqf b/addons/arsenal/functions/fnc_sortPanel.sqf index c8bf02777f..6bfb113d19 100644 --- a/addons/arsenal/functions/fnc_sortPanel.sqf +++ b/addons/arsenal/functions/fnc_sortPanel.sqf @@ -35,7 +35,16 @@ if (ctrlIDC _control == 17 && {GVAR(currentLeftPanel) in [IDC_buttonUniform ,IDC }; case 2: { + for "_i" from 0 to (((lnbsize _panel) select 0) - 1) do { + _panel lnbSetText [[_i, 2], str (parseNumber (_panel lnbText [_i, 2]) / 1000)]; + }; + _panel lnbSort [2, true]; + + + for "_i" from 0 to (((lnbsize _panel) select 0) - 1) do { + _panel lnbSetText [[_i, 2], str (parseNumber (_panel lnbText [_i, 2]) * 1000)]; + }; }; };