Merge commit '561a2e99207a9858c038142413cd1685236b1da8' into 1.7.10-dev
diff --git a/tools/internal_test.py b/tools/internal_test.py
index 6c4b7ff..f4f109f 100755
--- a/tools/internal_test.py
+++ b/tools/internal_test.py
@@ -138,9 +138,9 @@
     ['tools/run_on_app.py', '--run-all', '--out=out'],
     # Find min xmx for selected benchmark apps
     ['tools/gradle.py', 'r8lib'],
-] + (map(compile_with_memory_max_command, BENCHMARK_APPS)
-     + map(compile_with_memory_min_command, BENCHMARK_APPS)
-     + map(find_min_xmx_command, BENCHMARK_APPS))
+] + (map(find_min_xmx_command, BENCHMARK_APPS)
+     + map(compile_with_memory_max_command, BENCHMARK_APPS)
+     + map(compile_with_memory_min_command, BENCHMARK_APPS))
 
 
 # Command timeout, in seconds.