SystemTrayMenu/Helpers/WindowsExplorerSort.cs

23 lines
572 B
C#
Raw Normal View History

// <copyright file="WindowsExplorerSort.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace SystemTrayMenu.Helpers
{
2022-12-04 09:23:19 +13:00
using System.Collections.Generic;
using SystemTrayMenu.DllImports;
2022-12-06 09:46:53 +13:00
internal class WindowsExplorerSort : IComparer<string?>
{
2022-12-04 09:23:19 +13:00
public int Compare(string? x, string? y)
{
if (x != null && y != null)
{
return NativeMethods.ShlwapiStrCmpLogicalW(x, y);
}
return 0;
}
}
}