code: function compareScenes(one, two) {
    if (one.index > two.index) {
      return 1;
    }
    if (one.index < two.index) {
      return -1;
    }
  
    return compareKey(one.key, two.key);
  }
docs: Helper function to sort scenes based on their index and view key.