diff --git a/src/services/slack.ts b/src/services/slack.ts index b59a44347..ccffe4378 100644 --- a/src/services/slack.ts +++ b/src/services/slack.ts @@ -194,12 +194,7 @@ export class SlackConnector implements ISlackConnector { // THis is the limitation enforced by slack as no more 100 items are allowd in the dropdown //'[ERROR] no more than 100 items allowed [json-pointer:/view/blocks/0/element/options]' - reposToShow.sort((a, b) => - b.text - .toString() - .replace(/\d+/g, (n) => +n + 1000) - .localeCompare(a.text.toString().replace(/\d+/g, (n) => +n + 1000)) - ); + reposToShow.sort().reverse(); if (reposToShow.length > 100) { reposToShow = reposToShow.splice(0, 100);