title: PHPSpreadsheet - Keeping Images/Drawings in row when sorting?
body: <p><strong>Background:</strong></p>
  
  <p>I'm successfully inserting rows of data into a spreadsheet using the following to add text data:</p>
  
  <pre><code>$sheet-&gt;fromArray($user, NULL, 'B' . $counter);
  </code></pre>
  
  <p>And the following to add an image to the beggining of that row:</p>
  
  <pre><code>$drawing = new \PhpOffice\PhpSpreadsheet\Worksheet\Drawing();
  $drawing-&gt;setName('Avatar');
  $drawing-&gt;setDescription('Avatar');
  $drawing-&gt;setPath('image.jpg');
  $drawing-&gt;setCoordinates('A' . $counter);
  $drawing-&gt;setWidthAndHeight(50, 50);
  
  $drawing-&gt;setWorksheet($spreadsheet-&gt;getActiveSheet());
  </code></pre>
  
  <p>This works fine</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>When I then go to <strong>sort</strong> that data, the data is sorted successfully, but the images stay in their original place.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>How can I ensure when the spreadsheet is sorted, the images move with the row as well?</p>