场景1: 起始下标大于结束下标的插入
场景2: 起始下标小于结束下标的插入
...
id startObj = tempArr[startIndex];
///MARK:- 此处是简单的插入排序算法的运用
if (startIndex > endindex) {
[tempArr insertObject:startObj atIndex:endindex];
[tempArr removeObjectAtIndex:startIndex+1];
}else{
[tempArr insertObject:startObj atIndex:endindex+1];
[tempArr removeObjectAtIndex:startIndex];
}
...