fix: reorder alphabetical cloud model on starter screen (#4072)

* fix: reorder alphabetical cloud model on starter screen

* chore: update sort after group
This commit is contained in:
Faisal Amir 2024-11-22 12:53:11 +07:00 committed by GitHub
parent 8b485ba44f
commit 9ecad0972e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 9 deletions

View File

@ -39,14 +39,6 @@ const availableHotkeys = [
combination: 'Shift Enter',
description: 'Insert a new line (in input field)',
},
{
combination: 'Arrow Up',
description: 'Navigate to previous option (within search dialog)',
},
{
combination: 'Arrow Down',
description: 'Navigate to next option (within search dialog)',
},
]
const Hotkeys = () => {

View File

@ -99,7 +99,10 @@ const OnDeviceStarterScreen = ({ extensionHasSettings }: Props) => {
return rows
}
const rows = getRows(groupByEngine, itemsPerRow)
const rows = getRows(
groupByEngine.sort((a, b) => a.localeCompare(b)),
itemsPerRow
)
const refDropdown = useClickOutside(() => setIsOpen(false))