code: public static int compareTimestamps(UUID uuid1, UUID uuid2) {
          return Longs.compare(uuid1.timestamp(), uuid2.timestamp());
      }
docs: Compare the embedded timestamps of the given UUIDs. This is used when it is OK to return
  an equality based on timestamps alone
  @throws UnsupportedOperationException if either uuid is not a timestamp UUID