From 3037822628af01db9d67d4857e018d185315465d Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Aug 2022 23:32:51 +0200 Subject: [PATCH] fixed holochain version ordering in installed apps list --- src/store/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index f5a46b4e..10d067f1 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -164,10 +164,12 @@ export const store = createStore({ const versions: Array = Object.keys( stateInfo.state.content.content.versions - ).map((v) => ({ - type: "HolochainVersion", - content: v, - })); + ) + .sort((a, b) => b.localeCompare(a)) + .map((v) => ({ + type: "HolochainVersion", + content: v, + })); if ( stateInfo.state.content.content.custom_binary && stateInfo.state.content.content.custom_binary.type === "Running"