// Copyright (c) Dr. Dirk Lellinger. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlobViewer.Common { /// /// An that uses instances /// for sorting of Unicode strings. /// /// class UnicodeStringSorter : IComparer { /// /// Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. /// /// The first object to compare. /// The second object to compare. /// /// A signed integer that indicates the relative values of and , as shown in the following table.Value Meaning Less than zero /// is less than .Zero /// equals .Greater than zero /// is greater than . /// public int Compare(SortKey x, SortKey y) { return SortKey.Compare(x, y); } } }