diff --git a/client/src/templates/Challenges/classic/multifile-editor.tsx b/client/src/templates/Challenges/classic/multifile-editor.tsx index 45cf004426b..1d2a494bd70 100644 --- a/client/src/templates/Challenges/classic/multifile-editor.tsx +++ b/client/src/templates/Challenges/classic/multifile-editor.tsx @@ -99,10 +99,11 @@ const MultifileEditor = (props: MultifileEditorProps) => { const editorKeys = []; + // The order of the keys should match the order set by sortChallengeFiles + if (indexjsx) editorKeys.push('indexjsx'); if (indexhtml) editorKeys.push('indexhtml'); if (stylescss) editorKeys.push('stylescss'); if (scriptjs) editorKeys.push('scriptjs'); - if (indexjsx) editorKeys.push('indexjsx'); if (mainpy) editorKeys.push('mainpy'); if (indexts) editorKeys.push('indexts');