(FileSystemComparer): use default string comparer.

This commit is contained in:
morkt 2015-07-12 20:17:34 +04:00
parent ef913539e9
commit 7701ade540

View File

@ -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>