mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Use external code for sorting folder names
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user