@@ -2040,6 +2040,14 @@ function getSortedTransactionData(
20402040 return data ;
20412041 }
20422042
2043+ if ( sortBy === CONST . SEARCH . TABLE_COLUMNS . REPORT_ID || sortBy === CONST . SEARCH . TABLE_COLUMNS . BASE_62_REPORT_ID ) {
2044+ return data . sort ( ( a , b ) => {
2045+ const aValue = a . reportID ;
2046+ const bValue = b . reportID ;
2047+ return compareValues ( aValue , bValue , sortOrder , sortBy , localeCompare , true ) ;
2048+ } ) ;
2049+ }
2050+
20432051 const sortingProperty = transactionColumnNamesToSortingProperty [ sortBy ] ;
20442052
20452053 if ( sortBy === CONST . SEARCH . TABLE_COLUMNS . TITLE ) {
@@ -2134,6 +2142,14 @@ function getSortedReportData(
21342142 } ) ;
21352143 }
21362144
2145+ if ( sortBy === CONST . SEARCH . TABLE_COLUMNS . REPORT_ID || sortBy === CONST . SEARCH . TABLE_COLUMNS . BASE_62_REPORT_ID ) {
2146+ return data . sort ( ( a , b ) => {
2147+ const aValue = a . reportID ;
2148+ const bValue = b . reportID ;
2149+ return compareValues ( aValue , bValue , sortOrder , sortBy , localeCompare , true ) ;
2150+ } ) ;
2151+ }
2152+
21372153 const sortingProperty = expenseReportColumnNamesToSortingProperty [ sortBy ] ;
21382154
21392155 if ( ! sortingProperty ) {
@@ -2297,6 +2313,10 @@ function getSearchColumnTranslationKey(columnId: SearchCustomColumnIds): Transla
22972313 return 'common.title' ;
22982314 case CONST . SEARCH . TABLE_COLUMNS . STATUS :
22992315 return 'common.status' ;
2316+ case CONST . SEARCH . TABLE_COLUMNS . REPORT_ID :
2317+ return 'common.longID' ;
2318+ case CONST . SEARCH . TABLE_COLUMNS . BASE_62_REPORT_ID :
2319+ return 'common.reportID' ;
23002320 }
23012321}
23022322
@@ -2684,6 +2704,8 @@ function getColumnsToShow(
26842704 [ CONST . SEARCH . TABLE_COLUMNS . FROM ] : true ,
26852705 [ CONST . SEARCH . TABLE_COLUMNS . TO ] : true ,
26862706 [ CONST . SEARCH . TABLE_COLUMNS . TOTAL ] : true ,
2707+ [ CONST . SEARCH . TABLE_COLUMNS . BASE_62_REPORT_ID ] : false ,
2708+ [ CONST . SEARCH . TABLE_COLUMNS . REPORT_ID ] : false ,
26872709 [ CONST . SEARCH . TABLE_COLUMNS . ACTION ] : true ,
26882710 } ;
26892711
@@ -2760,6 +2782,8 @@ function getColumnsToShow(
27602782 [ CONST . SEARCH . TABLE_COLUMNS . BILLABLE ] : false ,
27612783 [ CONST . SEARCH . TABLE_COLUMNS . TAX_AMOUNT ] : false ,
27622784 [ CONST . SEARCH . TABLE_COLUMNS . TOTAL_AMOUNT ] : true ,
2785+ [ CONST . SEARCH . TABLE_COLUMNS . BASE_62_REPORT_ID ] : false ,
2786+ [ CONST . SEARCH . TABLE_COLUMNS . REPORT_ID ] : false ,
27632787 [ CONST . SEARCH . TABLE_COLUMNS . TITLE ] : false ,
27642788 [ CONST . SEARCH . TABLE_COLUMNS . STATUS ] : false ,
27652789 [ CONST . SEARCH . TABLE_COLUMNS . ACTION ] : true ,
0 commit comments