title: Yii2 GridView not showing data from ActiveDataProvider in the correct order
body: <p>So, i've got an action:</p>
  
  <pre><code>$query = MyModel::specificFind();
  $data = new ActiveDataProvider([
      'query' =&gt; $query,
      'sort' =&gt; [
          'enableMultiSort' =&gt; True,
      ],
      'totalCount' =&gt; MyModel::specificCount()
  ]);
  </code></pre>
  
  <p>In view:</p>
  
  <pre><code>&lt;?= GridView::widget([
      'dataProvider' =&gt; $data,
      'columns' =&gt; MyModel::allowedAttributes(),
  ]) ?&gt;
  </code></pre>
  
  <p>SQL Query looks good:</p>
  
  <pre><code>SELECT * FROM `my_model_table` WHERE `specific_id`=42 GROUP BY `id` ORDER BY `my_field` DESC LIMIT 20;
  </code></pre>
  
  <p>It's 1st page with selected order by "my_field". So, data recieved from SQL is correct. But for some reason result shuffles every time i refresh my page (while all query and data are the same)! </p>
  
  <p>However, it doesn't shuffle in chunk of data that have different values in sorting column. So, data with value "5" in sorting column will shuffle, data with "3", "4", "5" is behaving exactly like expected.</p>