mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] sort files by name
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ class StructureFilterPopupComponent extends FilterPopupComponent<VcsLogFileFilte
|
||||
return "No " + category;
|
||||
}
|
||||
else {
|
||||
VirtualFile firstFile = files.iterator().next();
|
||||
VirtualFile firstFile = ContainerUtil.sorted(files, shorten ? FILE_BY_NAME_COMPARATOR : FILE_BY_PATH_COMPARATOR).iterator().next();
|
||||
String firstFileName =
|
||||
shorten ? firstFile.getName() : StringUtil.shortenPathWithEllipsis(firstFile.getPresentableUrl(), FILTER_LABEL_LENGTH);
|
||||
if (files.size() == 1) {
|
||||
|
||||
Reference in New Issue
Block a user