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 request] add sort search result #711

Open
Abay11 opened this issue May 17, 2024 · 0 comments
Open

[feature request] add sort search result #711

Abay11 opened this issue May 17, 2024 · 0 comments

Comments

@Abay11
Copy link

Abay11 commented May 17, 2024

I think it would be very useful if we could have such feature.

It would be useful, if we have ability to sort lines as it is or using regex.

For example, sorting when no regex used. Let say we have lines:

Function foo called.
Function foo finished.
Function foo called.
Function foo fininshed.

if we sort lines we get

Function foo called.
Function foo called.
Function foo finished.
Function foo fininshed.

Now example when sorting using regex would be helpful. If we have log messages with timestamps or any other prefix which may change, we can select the part we want to compare and sort:

[12:00:01] Function foo called.
[12:00:02] Function foo finished.
[12:00:03] Function foo called.
[12:00:04] Function foo fininshed.

and sort with regex which select an interested for us part and we get:

[12:00:01] Function foo called.
[12:00:03] Function foo called.
[12:00:02] Function foo finished.
[12:00:04] Function foo fininshed.

What do you think? Will it be helpful?
I may open pull request if a lot of people also think it will be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant