Bladeren bron

fix sort function to return correct colors

Abram Kash 6 jaren geleden
bovenliggende
commit
8905b7ed82
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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;