Skip to content

Commit ef1c258

Browse files
authored
Merge pull request #3349 from RedisInsight/fe/feature/RI-5698_Change_tree_view_sorting
#RI-5698 - Change the sorting logic of the keys in the list to sort b…
2 parents 4bcfdb1 + 7cbec21 commit ef1c258

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)