code: public List<Partition> getPartitionsFromDataset() throws IOException{
      try (AutoReturnableObject<IMetaStoreClient> client = getClientPool().getClient()) {
        List<Partition> partitions =
            HiveUtils.getPartitions(client.get(), getTable(), Optional.<String>absent());
        return sortPartitions(partitions);
      }
    }
docs: This method returns a sorted list of partitions.