title: Sort Array of Strings by index
body: <p>I have an array of strings as follows:</p>
  
  <pre><code>["\(title)|\(time)|\(length)|\(event)"]
  
  ["test1|00:24.42|SC Meters|50 Free", "test2|00:25.52|SC Yards|100 Free", "test3|00:26.73|SC Yards|100 Free", "test4|00:27.34|SC Yards|100 Free"]
  </code></pre>
  
  <p>I am using this to sort by title:</p>
  
  <pre><code>selectedSwimmerTimes = selectedSwimmerTimes.sorted { $0.localizedCaseInsensitiveCompare($1) == ComparisonResult.orderedAscending }
  </code></pre>
  
  <p>Can I sort the array of strings by a start and stop index? So can I use the above sorting method except instead of sorting the strings based on the first letter alphabetically, sort the strings by index 6 through 13.</p>
  
  <p>I have tried other methods such as splitting into variables and iterating through a dictionary but the other code for the app needs this to be an array of strings.</p>