# Get Pods descending sorted from age

**URL:** <https://discuss.kubernetes.io/t/get-pods-descending-sorted-from-age/5545>\
**Category:** General Discussions\
**Created:** [March 19, 2019, 10:15am UTC](https://discuss.kubernetes.io/t/get-pods-descending-sorted-from-age/5545 "2019-03-19T10:15:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mrbobbytables](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mrbobbytables/32/7_2.png) [@mrbobbytables](https://discuss.kubernetes.io/u/mrbobbytables)\
**Post date:** [March 19, 2019, 11:42am UTC](https://discuss.kubernetes.io/t/get-pods-descending-sorted-from-age/5545/2 "2019-03-19T11:42:04Z")

</div>

I’m not sure about just returning the latest one, but you should be able to get their timestamp and comparing yourself. There are 2 things you can use `.metadata.creationTimestamp` or `.status.startTime`.

Can see this and sort via kubectl:

- `kubectl get pods --sort-by=.metadata.creationTimestamp`
- `kubectl get pods --sort-by=.status.startTime`

---

_[View the full topic](https://discuss.kubernetes.io/t/get-pods-descending-sorted-from-age/5545)._
