From cd7b38ecde47a264cf75e92296fb0fd534f912f1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 2 Mar 2018 12:43:12 -0500 Subject: [PATCH] fix sort function ref --- src/background/main.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/main.background.ts b/src/background/main.background.ts index db261f4897..6a1d8969b0 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -384,7 +384,7 @@ export default class MainBackground { this.menuOptionsLoaded = []; try { const ciphers = await this.cipherService.getAllDecryptedForUrl(url); - ciphers.sort(this.cipherService.sortCiphersByLastUsedThenName); + ciphers.sort((a, b) => this.cipherService.sortCiphersByLastUsedThenName(a, b)); if (contextMenuEnabled) { ciphers.forEach((cipher) => {