title: How can I sort an array that contains the day of the week?
body: <p>Suppose I have an array like such</p>
  <pre><code>const week = [&quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;]
  </code></pre>
  <p>How would I go about if I wanted to sort the array depending on the current day. Say, if today's friday, the week array will be like this</p>
  <pre><code>[&quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;, &quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;]
  </code></pre>