Sort Even and Odd Indices Independently

排序一个数组, 偶数index的数字递增, 奇数index的数字递减.