From 0ace02a87d863bd8872850fb6c90cf07cb0338b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Mon, 11 May 2020 13:43:05 +0200 Subject: [PATCH] sort boards in nav MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/components/navigation/AppNavigationBoardCategory.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/navigation/AppNavigationBoardCategory.vue b/src/components/navigation/AppNavigationBoardCategory.vue index e6d078d31..d4a7ec202 100644 --- a/src/components/navigation/AppNavigationBoardCategory.vue +++ b/src/components/navigation/AppNavigationBoardCategory.vue @@ -29,7 +29,7 @@ {{ text }} @@ -78,6 +78,9 @@ export default { } }, computed: { + boardsSorted() { + return [...this.boards].sort((a, b) => (a.title < b.title) ? -1 : 1) + }, collapsible() { return this.boards.length > 0 },