title: Sort an array of timestamps in JavaScript
body: <p>I am developing an Angular web service for creating photo journeys and displaying them on a map using Leaflet.
  When I upload the pictures, I get their coordinates from their EXIF data and their <strong>DateTimeOriginal</strong> from it which returns string like this: </p>
  
  <p><a href="https://i.stack.imgur.com/EcsEl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EcsEl.png" alt="enter image description here"></a></p>
  
  <p>and then save them in array for a further connecting with paths on a map.</p>
  
  <p>I have issues with sorting this array by timestamps in order to connect the markers on the map properly:</p>
  
  <p><a href="https://i.stack.imgur.com/flR2j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/flR2j.png" alt="enter image description here"></a></p>
  
  <p>How can I sort by time-stamp?</p>