title: I have a ruby array of filepaths (./dir2/chico.html) and I can't seem to get it to sort correctly
body: <p>So I have my array: (This isn't the exact order of the elements, just an example)</p>
  
  <pre><code>myArray = {./dir2/chico.html, ./dir2/chico.rb, ./dir1/c.js, ./dir1/g.txt, ./dir1/d.css}
  </code></pre>
  
  <p>When I do a sort using...</p>
  
  <pre><code>myArray.sort
  </code></pre>
  
  <p>The results come out unsorted...</p>
  
  <pre><code>./dir2/chico.html
  ./dir2/chico.rb
  ./dir1/c.js
  ./dir1/g.txt
  ./dir1/d.css
  </code></pre>
  
  <p>What I want is for all the dir1 files to come before dir2. And d.css should come before g.txt. Why isn't it sorting?</p>