Move --find-min-xmx logging before testing to more easily adjust tests

Change-Id: I72278eebe590ed0a385f0b1d2684afb57f161973
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.