瀏覽代碼

fix sort function to return correct colors

Abram Kash 6 年之前
父節點
當前提交
8905b7ed82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      results.js

+ 1 - 1
results.js

@@ -195,7 +195,7 @@ function findFlagColors() {
   }
 
   colors.sort(function(a, b) {
-    return a.value < b.value;
+    return b.value - a.value;
   });
 
   return colors;