Commit 17177815 authored by Gregory.Shrago's avatar Gregory.Shrago Committed by intellij-monorepo-bot
Browse files

IDEA-273731 Strange sorting order in Scratch Files popups

(cherry picked from commit a70e0c0897e93e85f95df6d13b8db365eb6dc831)

IJ-CR-11917

GitOrigin-RevId: 17f4552eefa57065c1b8ee73f554f392d1dcbff8
parent 7abbf378
Showing with 2 additions and 0 deletions
+2 -0
......@@ -34,6 +34,7 @@ import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.NotNullLazyValue;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.NaturalComparator;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VfsUtilCore;
......@@ -428,6 +429,7 @@ public final class ScratchFileActions {
return result.size() < 1000;
}
});
Collections.sort(result, Comparator.comparing(o -> o.getFile().getName(), NaturalComparator.INSTANCE));
return result;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment