mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04: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;
|
order = s_default_comparer.Compare (prop_a, prop_b) * m_direction;
|
||||||
}
|
}
|
||||||
if (0 == order)
|
if (0 == order)
|
||||||
order = NativeMethods.StrCmpLogicalW (v_a.Name, v_b.Name);
|
order = CompareNames (v_a.Name, v_b.Name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
order = NativeMethods.StrCmpLogicalW (v_a.Name, v_b.Name) * m_direction;
|
order = CompareNames (v_a.Name, v_b.Name) * m_direction;
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int CompareNames (string a, string b)
|
||||||
|
{
|
||||||
|
// return NativeMethods.StrCmpLogicalW (a, b);
|
||||||
|
return string.Compare (a, b, StringComparison.CurrentCultureIgnoreCase);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user