feat(popover): sort keymaps and macros alphabetically (#534)

* feat(popover): sort keymaps and macros alphabetically

Closes #512

* small performance refactoring
This commit is contained in:
József Farkas
2018-01-29 23:15:21 +01:00
committed by László Monda
parent a44a7dc5f8
commit 02f1053d46
7 changed files with 1888 additions and 1689 deletions

View File

@@ -0,0 +1,9 @@
export function findNewItem<T>(oldItems: T[], newItems: T[]): T {
for (let i = 0; i < oldItems.length; ++i) {
if (oldItems[i] !== newItems[i]) {
return newItems[i];
}
}
return newItems[newItems.length - 1];
}

View File

@@ -1,3 +1,4 @@
export * from './find-new-item';
export * from './html-helper';
export * from './validators';
export * from './version-helper';