title: Is there an optimal way to swap fields?
body: <p>I have this table:</p>
  <p><a href="https://i.stack.imgur.com/PcZas.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PcZas.png" alt="table" /></a></p>
  <p>I don't want to make many queries to my database.
  How can I change the &quot;position&quot; field in places.
  For example:</p>
  <p><a href="https://i.stack.imgur.com/RAz2h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAz2h.png" alt="table data" /></a></p>
  <p><a href="https://i.stack.imgur.com/daZgu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/daZgu.png" alt="updated table data" /></a></p>
  <p>How can this be done in one request?</p>