title: in javascript, how do you sort a subset of an array?
body: <p>I have an array and would like to sort all but the last n elements.</p>
  
  <p>For example, if the array is 10 elements long, would like elements 0 through 7 to be sorted while elements 8-9 are left in place.</p>