class PodSortByCreationTimestamp {
  private static final Logger logger = LoggerFactory.getLogger(PodSortByCreationTimestamp.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (final KubernetesClient k8s = new KubernetesClientBuilder().build()) {
      List<Pod> podList = k8s.pods().inNamespace("default").list().getItems();

      // In kubectl sorting is done on client side; so we can sort list by ourselves in latest to oldest pod
      podList.sort((o1, o2) -> {
        long o1Timestamp = Instant.parse(o1.getMetadata().getCreationTimestamp()).getEpochSecond();
        long o2Timestamp = Instant.parse(o2.getMetadata().getCreationTimestamp()).getEpochSecond();
        return (int) (o2Timestamp - o1Timestamp);
      });

      // Check if list is sorted
      for (Pod pod : podList) {
        logger.info("{} : {} minutes old", pod.getMetadata().getName(),
            Duration.between(Instant.now(), Instant.parse(pod.getMetadata().getCreationTimestamp())).toMinutes());
      }
    }
  
<no_super_class>