Skip to content

Commit 7cbec21

Browse files
#RI-5698 - Change the sorting logic of the keys in the list to sort by each subsequent character
1 parent 0fb8674 commit 7cbec21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/src/helpers/constructKeysToTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export const constructKeysToTree = (props: Props): any[] => {
5959

6060
// Regular sorting
6161
if (sorting === 'ASC') {
62-
return a.localeCompare(b, 'en', { numeric: true })
62+
return a.localeCompare(b, 'en')
6363
}
6464
if (sorting === 'DESC') {
65-
return b.localeCompare(a, 'en', { numeric: true })
65+
return b.localeCompare(a, 'en')
6666
}
6767

6868
return 0

0 commit comments

Comments
 (0)