$gameVariables[10].sort(function(a, b){
var x = a[1];
var y = b[1];
if (x > y) return 1;
if (x < y) return -1;
return 0;
});
こんな感じに入れてみても駄目だった