Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: sort display by column #85

Open
mozai opened this issue Sep 21, 2020 · 0 comments
Open

Feature: sort display by column #85

mozai opened this issue Sep 21, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@mozai
Copy link

mozai commented Sep 21, 2020

Is your feature request related to a problem? Please describe.
When viewing a list of Events, I must hold the "Last Seen" of each Event in my head and mentally rearrange events so I know whether a "FailedMount" happened before or after a "FailedScheduling"

Describe the solution you'd like
Sort the lists in the right-hand panel by any single column, choosing ASCII sort unless all values are numbers.
Hotkeys to move the sort-by column left or right, as per the '<' and '>' keys in /usr/bin/top.

Describe alternatives you've considered
Copy-pasting the text displayed into a temporary text file, and sorting that textfile.

Additional context
This may not work well for the "Last Seen" column if they are rendered internally as "4m12s" strings instead of "2020-09-21T04:13:00Z" timestamps or "1600675980" timestamps. kubectl get events -o yaml looks like they use timestamps.

How to determine if all values are numbers? kubernetes API probably ouputs yaml or JSON which would look like strings to us. Match against /^[-+.0-9e]+$/ ?

@AnatolyRugalev AnatolyRugalev added the enhancement New feature or request label Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants