code: function compare(a, b) {
      try {
          return semver.compare(a, b);
      } catch(err) {
          if(semver.valid(a)) {
              return 1
          }
          if(semver.valid(b)) {
              return -1;
          }
          return 0;
      }
  }
docs: Return 0 if v1 == v2, or 1 if v1 is greater, or -1 if v2 is greater. Sorts in ascending order if passed to Array.sort(). sorts valid semver version numbers before invalid ones