File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/main/java/openscience/crowdsource/video/experiments Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,10 @@ public static void initRecognitionScenariosAsync(ScenariosUpdater updater) {
110110 }
111111 AppLogger .logMessage ("Scenarios reloaded for " + (new Date ().getTime () - startReloading ) + " ms" );
112112 }
113- Collections .sort (recognitionScenarios , COMPARATOR );
113+ /**
114+ * Now sorting applies on server side if it will be required again just use here:
115+ * Collections.sort(recognitionScenarios, COMPARATOR)
116+ */
114117 updater .update ();
115118 }
116119
@@ -172,7 +175,10 @@ public static ArrayList<RecognitionScenario> getSortedRecognitionScenarios() {
172175 AppLogger .logMessage ("Scenarios reloaded for " + (new Date ().getTime () - startReloading ) + " ms" );
173176 AppConfigService .updateState (AppConfigService .AppConfig .State .READY );
174177 }
175- Collections .sort (recognitionScenarios , COMPARATOR ); // todo it's better to do only once at init
178+ /**
179+ * Now sorting applies on server side if it will be required again just use here:
180+ * Collections.sort(recognitionScenarios, COMPARATOR)
181+ */
176182 return recognitionScenarios ;
177183 }
178184
You can’t perform that action at this time.
0 commit comments