From c370c51ed76c047c04e9cc1f4694e19f0b7cfcea Mon Sep 17 00:00:00 2001 From: David Nicholas Date: Wed, 29 Jan 2025 11:53:49 -0800 Subject: [PATCH] update sort --- public/jira-oidc-helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/jira-oidc-helpers.js b/public/jira-oidc-helpers.js index aa539b5..3e3833b 100644 --- a/public/jira-oidc-helpers.js +++ b/public/jira-oidc-helpers.js @@ -490,8 +490,9 @@ export default function JiraOIDCHelpers({ JIRA_CLIENT_ID, JIRA_SCOPE, JIRA_CALLB if (a?.scope && !b?.scope) { return 1; } + if (b?.scope && !a?.scope) { - return 1; + return -1; } return 0;