Skip to content

Commit

Permalink
Merge pull request #52989 from FitseTLT/fix-search-result-flickering-bug
Browse files Browse the repository at this point in the history
Fix - Search - Expenses change position briefly when switching from Settings to Search
  • Loading branch information
marcochavezf authored Nov 25, 2024
2 parents 0cb5a48 + 03d682e commit 69ea17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/SearchUIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function getSortedTransactionData(data: TransactionListItemType[], sortBy?: Sear

// We are guaranteed that both a and b will be string or number at the same time
if (typeof aValue === 'string' && typeof bValue === 'string') {
return sortOrder === CONST.SEARCH.SORT_ORDER.ASC ? aValue.toLowerCase().localeCompare(bValue) : bValue.toLowerCase().localeCompare(aValue);
return sortOrder === CONST.SEARCH.SORT_ORDER.ASC ? aValue.localeCompare(bValue) : bValue.localeCompare(aValue);
}

const aNum = aValue as number;
Expand Down

0 comments on commit 69ea17e

Please sign in to comment.