mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, NaturalComparer, Style] Fix current directory; fix sorting order
If we find stuff that's "identical" then we should really compare to see if it's ACTUALLY identical or not, or else this can make some things REALLY weird
This commit is contained in:
@@ -43,13 +43,13 @@ namespace NaturalSort
|
||||
if (!table.TryGetValue(x, out x1))
|
||||
{
|
||||
//x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(x, x1);
|
||||
}
|
||||
if (!table.TryGetValue(y, out y1))
|
||||
{
|
||||
//y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(y, y1);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,13 +43,13 @@ namespace NaturalSort
|
||||
if (!table.TryGetValue(x, out x1))
|
||||
{
|
||||
//x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)");
|
||||
x1 = Regex.Split(x, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(x, x1);
|
||||
}
|
||||
if (!table.TryGetValue(y, out y1))
|
||||
{
|
||||
//y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)");
|
||||
y1 = Regex.Split(y, "([0-9]+)").Where(s => s != "").ToArray();
|
||||
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => s != "").ToArray();
|
||||
table.Add(y, y1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user