k9s is GREAT but there’s one thing I don’t like— it’s not easy to sort events by last seen. I keep running into the situation where I want to know what’s going wrong with my cluster, so I type :events to see the events page, but the events are usually sorted backwards to how I want them to be. I want to see the latest events, but I don’t remember how to sort by the latest event. The help menu doesn’t seem to match up with the columns on the event page, so let’s just make a note right here on how to do this.

First, we need to be on the events page. We can get there by typing :events

Next, we need to select/highlight the LAST SEEN column. We can do this using Ctrl+Shift+Right. The selected column shows up bold white, whereas the unselected columns show as regular white.

Now that we have LAST SEEN column selected, we can press Shift+O to toggle between ascending and descending. When the cyan arrow is pointing up, that’s when the latest events will show at the top of the list.