mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-09 01:16:25 +00:00
Merge pull request #26 from codewarrior0/natural-sort
Change natural comparer to respect negative numbers
This commit is contained in:
commit
975c11d3d8
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ namespace NBTExplorer.Utility
|
|||
}
|
||||
string[] x1, y1;
|
||||
if (!table.TryGetValue(x, out x1)) {
|
||||
x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)");
|
||||
x1 = Regex.Split(x.Replace(" ", ""), "(-?[0-9]+)");
|
||||
table.Add(x, x1);
|
||||
}
|
||||
if (!table.TryGetValue(y, out y1)) {
|
||||
y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)");
|
||||
y1 = Regex.Split(y.Replace(" ", ""), "(-?[0-9]+)");
|
||||
table.Add(y, y1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue