title: How to reverse the order in svelte {#each ...} block
body: <p>Is it possible to reverse the order in which the items are displayed in svelte's {#each ...} block?</p>
  
  <p>I want this for an array of object, sorted by id, where the oldest entry comes first. And I want to display the newest entry first.</p>
  
  <p>Edit: To illustrate what happens when using the .reverse() solution, here the 'before' and 'after' transition screens:
  <a href="https://i.stack.imgur.com/XsZMj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XsZMj.jpg" alt="before"></a></p>
  
  <p><a href="https://i.stack.imgur.com/g8sLW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g8sLW.jpg" alt="after"></a></p>