[Style] Use external code for sorting folder names

This commit is contained in:
Matt Nadareski
2016-10-28 15:13:29 -07:00
parent 340993e2d9
commit 646985a716
4 changed files with 89 additions and 3 deletions

View File

@@ -864,7 +864,7 @@ namespace SabreTools.Helper.Dats
}
// Sort the list first
newInputFileNames.Sort(new NaturalComparer());
newInputFileNames = Style.OrderByAlphaNumeric(newInputFileNames, s => s).ToList();
// If we're in inverse cascade, reverse the list
if ((diff & DiffMode.ReverseCascade) != 0)
@@ -4320,6 +4320,12 @@ namespace SabreTools.Helper.Dats
new ParallelOptions { MaxDegreeOfParallelism = maxDegreeOfParallelism },
file =>
{
// If we somehow have a null filename, return
if (file == null)
{
return;
}
// Define the temporary directory
string tempSubDir = Path.GetFullPath(Path.Combine(tempDir, Path.GetRandomFileName())) + Path.DirectorySeparatorChar;