title: How to reorder test execution based on dataprovider?
body: <p>Using TestNG @DataProvider will trigger tests in the following order:</p>
  
  <p>Assuming dataprovider returns <code>{ [0], [1], [2] }</code>, TestNG runs:</p>
  
  <pre><code>test1(0)
  test1(1)
  test1(2)
  
  test2(0)
  test2(1)
  test2(2)
  ...
  </code></pre>
  
  <p>Is there any way to trigger the tests to run in this order?</p>
  
  <pre><code>test1(0)
  test2(0)
  
  test1(1)
  test2(1)
  
  test1(2)
  test2(2)
  ...
  </code></pre>
  
  <p>A thousand thanks for your help!</p>