mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-06 12:42:02 +12:00
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;
|
|
}
|
|
}
|
|
}
|