bugfix(macos+webi): compare dates properly
authorAJ ONeal <aj@therootcompany.com>
Wed, 10 Nov 2021 09:07:50 +0000 (09:07 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sun, 14 Nov 2021 08:18:33 +0000 (08:18 +0000)
macos/releases.js

index 39f7c3fde683ce3b31a497f646035be94a5dc1fe..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;
       }
     });