From 3ae079a54174cabe1829be91e3cb6d5d036b6309 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 19 Oct 2018 23:11:42 -0400 Subject: [PATCH] Fixed: Interactive import SelectArtist ordering --- .../Artist/SelectArtistModalContentConnector.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/InteractiveImport/Artist/SelectArtistModalContentConnector.js b/frontend/src/InteractiveImport/Artist/SelectArtistModalContentConnector.js index 78c5631f0..04e87f3c7 100644 --- a/frontend/src/InteractiveImport/Artist/SelectArtistModalContentConnector.js +++ b/frontend/src/InteractiveImport/Artist/SelectArtistModalContentConnector.js @@ -12,7 +12,17 @@ function createMapStateToProps() { createAllArtistSelector(), (items) => { return { - items + items: items.sort((a, b) => { + if (a.sortName < b.sortName) { + return -1; + } + + if (a.sortName > b.sortName) { + return 1; + } + + return 0; + }) }; } );