1
0
Fork 0
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:
Mark McDowall 2017-02-04 21:09:52 -08:00
parent ef044f1ff5
commit 10264a5bfb

View file

@ -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)