namespace Mlaumcherb.Client.Avalonia.холопы; // compares Y with X instead of X with Y public class ReverseComparer : IComparer where T : IComparable { public int Compare(T? x, T? y) { if (y is null) return x is null ? 0 : -1; return y.CompareTo(x); } }