mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(FileSystemComparer): use default string comparer.
This commit is contained in:
parent
ef913539e9
commit
7701ade540
10
ViewModel.cs
10
ViewModel.cs
@ -276,12 +276,18 @@ namespace GARbro.GUI
|
||||
order = s_default_comparer.Compare (prop_a, prop_b) * m_direction;
|
||||
}
|
||||
if (0 == order)
|
||||
order = NativeMethods.StrCmpLogicalW (v_a.Name, v_b.Name);
|
||||
order = CompareNames (v_a.Name, v_b.Name);
|
||||
}
|
||||
else
|
||||
order = NativeMethods.StrCmpLogicalW (v_a.Name, v_b.Name) * m_direction;
|
||||
order = CompareNames (v_a.Name, v_b.Name) * m_direction;
|
||||
return order;
|
||||
}
|
||||
|
||||
static int CompareNames (string a, string b)
|
||||
{
|
||||
// return NativeMethods.StrCmpLogicalW (a, b);
|
||||
return string.Compare (a, b, StringComparison.CurrentCultureIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user