Find in Files keeps randomizing results

Answered

Every time I use “find in files” for the exact same word, the result order changes, it's very annoying and confusing, specially because we have files with the same name in 7 different folders. 

Is there a way to keep the results ordered by PATH?

Heck, even “grep -r” gives a consistent result order even though it doesn't sorts the files.

1
3 comments
Currently, there is no way to order this list. And this list result is not nondeterministic for different files: https://youtrack.jetbrains.com/issue/IDEA-210270
As a workaround, please click the "Open in Find window" action in that dialog. It will show the result in alphabetical order.
You can also narrow results by preconfigured scopes and directories : https://www.jetbrains.com/help/idea/finding-and-replacing-text-in-project.html#limit_search
0

This is really not a viable solution. Please give it a default sort Order by file path, problem fixed.
For an “ULTIMATE” IDE solution I really expect more and it is completely weird, that there are not more complaints.

1

Hi, Matthias!

Thanks for your comment. We understand how frustrating this can be.

Let me step ahead here and just clarify a couple of points regarding the original report:
* In regards to using the Find in Files feature but always getting a different order result, this has been reported in IJPL-49931 (the same ticket mentioned by my colleague Abhishek. Here is how you can vote and follow up in;
* As a second point, I also wanted to let you know that I've created IJPL-192029 as a feature request to turn the Order by File Path as a default sort method. Here is how you can vote and follow the updates for that ticket.

Let us know if you have any questions on the way.

0

Please sign in to leave a comment.