mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-26 07:53:36 +00:00
New: Ensure folders are sorted alphabetically when importing
Closes #294
This commit is contained in:
parent
ef044f1ff5
commit
10264a5bfb
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ namespace NzbDrone.Core.RootFolders
|
||||||
results.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x.Path.ToLowerInvariant()).Name));
|
results.RemoveAll(x => setToRemove.Contains(new DirectoryInfo(x.Path.ToLowerInvariant()).Name));
|
||||||
|
|
||||||
_logger.Debug("{0} unmapped folders detected.", results.Count);
|
_logger.Debug("{0} unmapped folders detected.", results.Count);
|
||||||
return results;
|
return results.OrderBy(u => u.Name, StringComparer.InvariantCultureIgnoreCase).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public RootFolder Get(int id)
|
public RootFolder Get(int id)
|
||||||
|
|
Loading…
Reference in a new issue