@@ -81,17 +81,17 @@ export function useTableSorting() {
8181 * @param {Object } bRow - Second row object
8282 * @returns {number } - Sort result (-1, 0, 1)
8383 */
84- const tierSortHandler = ( aRow , bRow ) => {
85- // TODO refactor into another method
86- const a = getTierValue ( aRow ) ;
87- const b = getTierValue ( bRow ) ;
84+ // const tierSortHandler = (aRow, bRow) => {
85+ // // TODO refactor into another method
86+ // const a = getTierValue(aRow);
87+ // const b = getTierValue(bRow);
8888
89- if ( a === null && b === null ) return 0 ;
90- if ( a === null ) return 1 ;
91- if ( b === null ) return - 1 ;
89+ // if (a === null && b === null) return 0;
90+ // if (a === null) return 1;
91+ // if (b === null) return -1;
9292
93- return a - b ;
94- } ;
93+ // return a - b;
94+ // };
9595
9696 /**
9797 * Sort handler for region columns (handles string region values)
@@ -128,17 +128,17 @@ export function useTableSorting() {
128128 * @param {Object } row - Row object
129129 * @returns {number|null } - Tier value for sorting
130130 */
131- const getTierValue = ( row ) => {
132- if ( row . designation && Array . isArray ( row . designation ) && row . designation . length > 0 ) {
133- const tier = parseInt ( row . designation [ 0 ] . tier , 10 ) ;
134- return isNaN ( tier ) ? null : tier ;
135- }
136- if ( row . designation && row . designation . tier ) {
137- const tier = parseInt ( row . designation . tier , 10 ) ;
138- return isNaN ( tier ) ? null : tier ;
139- }
140- return null ;
141- } ;
131+ // const getTierValue = (row) => {
132+ // if (row.designation && Array.isArray(row.designation) && row.designation.length > 0) {
133+ // const tier = parseInt(row.designation[0].tier, 10);
134+ // return isNaN(tier) ? null : tier;
135+ // }
136+ // if (row.designation && row.designation.tier) {
137+ // const tier = parseInt(row.designation.tier, 10);
138+ // return isNaN(tier) ? null : tier;
139+ // }
140+ // return null;
141+ // };
142142
143143 /**
144144 * Get the region value for sorting (returns string value or null)
0 commit comments