Skip to content

Commit 888f834

Browse files
committed
Remove natural sort from staged changes quick pick items
1 parent a4c7de0 commit 888f834

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎apps/editor/src/utils/git-repository-utils.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as vscode from 'vscode'
22
import { execSync } from 'child_process'
33
import { dictionary } from '@shared/constants/dictionary'
44
import * as path from 'path'
5-
import { natural_sort } from './natural-sort'
65

76
type GitRepository = {
87
rootUri: vscode.Uri
@@ -117,12 +116,6 @@ export const prepare_staged_changes = async (
117116
}
118117
})
119118

120-
items.sort((a, b) => {
121-
const label_diff = natural_sort(a.label, b.label)
122-
if (label_diff != 0) return label_diff
123-
return natural_sort(a.description || '', b.description || '')
124-
})
125-
126119
const selected = await new Promise<any[] | undefined>((resolve) => {
127120
const quick_pick = vscode.window.createQuickPick<any>()
128121
quick_pick.items = items

0 commit comments

Comments
 (0)