mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-10-05 04:24:38 +13:00
0158499a2c
Corrected namespace naming of Helpers
22 lines
572 B
C#
22 lines
572 B
C#
// <copyright file="WindowsExplorerSort.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace SystemTrayMenu.Helpers
|
|
{
|
|
using System.Collections.Generic;
|
|
using SystemTrayMenu.DllImports;
|
|
|
|
internal class WindowsExplorerSort : IComparer<string?>
|
|
{
|
|
public int Compare(string? x, string? y)
|
|
{
|
|
if (x != null && y != null)
|
|
{
|
|
return NativeMethods.ShlwapiStrCmpLogicalW(x, y);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
}
|