|   |  | 1 |  | // Copyright (c) 2020-2024 dotBunny Inc. | 
|   |  | 2 |  | // dotBunny licenses this file to you under the BSL-1.0 license. | 
|   |  | 3 |  | // See the LICENSE file in the project root for more information. | 
|   |  | 4 |  |  | 
|   |  | 5 |  | using System.Collections.Generic; | 
|   |  | 6 |  |  | 
|   |  | 7 |  | namespace GDX.DataTables.ColumnSorters | 
|   |  | 8 |  | { | 
|   |  | 9 |  |     class RowNameColumnSorter : ColumnSorterBase, IComparer<RowDescription> | 
|   |  | 10 |  |     { | 
|   |  | 11 |  |         /// <inheritdoc /> | 
|   |  | 12 |  |         public RowNameColumnSorter(DataTableBase dataTable, int rowCount, int columnIdentifier, int sortDirection, | 
|   |  | 13 |  |             bool supportMultiSort = false) : | 
|   | 0 | 14 |  |             base(dataTable, rowCount, columnIdentifier, sortDirection, supportMultiSort) | 
|   | 0 | 15 |  |         { | 
|   | 0 | 16 |  |         } | 
|   |  | 17 |  |  | 
|   |  | 18 |  |         /// <inheritdoc /> | 
|   |  | 19 |  |         public int Compare(RowDescription x, RowDescription y) | 
|   | 0 | 20 |  |         { | 
|   | 0 | 21 |  |             string lhs = DataTable.GetRowName(x.Identifier); | 
|   | 0 | 22 |  |             string rhs = DataTable.GetRowName(y.Identifier); | 
|   | 0 | 23 |  |             return ProcessCompare(string.CompareOrdinal(lhs, rhs), x.Identifier, y.Identifier); | 
|   | 0 | 24 |  |         } | 
|   |  | 25 |  |     } | 
|   |  | 26 |  | } |