@Override
      public int compare(StackReleaseInfo o1, StackReleaseInfo o2) {
        return VersionUtils.compareVersionsWithBuild(
            getFullVersion(o1), getFullVersion(o2), 4);
      }
This is the default implementation if no stack provides an implementation.
Before this mechanism, Ambari assumed the version was in the format X.X.X.X-YYYY
ambari-server/src/main/java/org/apache/ambari/server/state/repository/DefaultStackVersion.java