chore: make Prettier
[webi-installers/.git] / macos / releases.js
index 30ae31b3adf65a3551abf58b4eb08b3995859a07..c0201a6c61dac9ab8073c8b3d9e250d031065cb6 100644 (file)
@@ -72,10 +72,10 @@ module.exports = function (request) {
       if ('10.11.6' === a.version) {
         return -1;
       }
-      if (a.date > a.date) {
+      if (a.date > b.date) {
         return 1;
       }
-      if (a.date < a.date) {
+      if (a.date < b.date) {
         return -1;
       }
     });
@@ -85,6 +85,6 @@ module.exports = function (request) {
 
 if (module === require.main) {
   module.exports(require('@root/request')).then(function (all) {
-    console.log(JSON.stringify(all, null, 2));
+    console.info(JSON.stringify(all, null, 2));
   });
 }