[DatFile, FileTools] Revert some natural sorting stuff

This commit is contained in:
Matt Nadareski
2017-06-02 16:06:52 -07:00
parent e45f15245a
commit e0688bf4c6
2 changed files with 8 additions and 13 deletions

View File

@@ -408,9 +408,8 @@ namespace SabreTools.Library.Tools
/// </summary>
/// <param name="inputs">List of strings representing directories and files</param>
/// <param name="appendparent">True if the parent name should be appended after the special character "¬", false otherwise (default)</param>
/// <param name="reverse">True if the order output should be reversed, false otherwise (default)</param>
/// <returns>List of strings representing just files from the inputs</returns>
public static List<string> GetOnlyFilesFromInputs(List<string> inputs, bool appendparent = false, bool reverse = false)
public static List<string> GetOnlyFilesFromInputs(List<string> inputs, bool appendparent = false)
{
List<string> outputs = new List<string>();
foreach (string input in inputs)
@@ -451,16 +450,6 @@ namespace SabreTools.Library.Tools
}
}
// Make sure the outputs are ordered correctly
if (reverse)
{
outputs.Sort(new NaturalReversedComparer());
}
else
{
outputs.Sort(new NaturalComparer());
}
return outputs;
}