2020-07-07 07:15:45 +12:00
|
|
|
|
// <copyright file="WindowsExplorerSort.cs" company="PlaceholderCompany">
|
|
|
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
|
|
|
// </copyright>
|
2020-03-28 08:43:16 +13:00
|
|
|
|
|
|
|
|
|
namespace SystemTrayMenu.Helper
|
|
|
|
|
{
|
2020-07-07 07:15:45 +12:00
|
|
|
|
using System.Collections.Generic;
|
2022-03-29 21:52:10 +13:00
|
|
|
|
using System.IO;
|
2020-07-07 09:37:55 +12:00
|
|
|
|
|
2020-03-28 08:43:16 +13:00
|
|
|
|
internal class WindowsExplorerSort : IComparer<string>
|
|
|
|
|
{
|
|
|
|
|
public int Compare(string x, string y)
|
|
|
|
|
{
|
2022-06-13 11:32:36 +12:00
|
|
|
|
return DllImports.NativeMethods.ShlwapiStrCmpLogicalW(x, y);
|
2020-03-28 08:43:16 +13:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|