SortUtility
Info
typeStatic Class
namespaceAnimatext
Methods
Static Public
Order(int length, SortType type)int[]Returns the value array ordered by the sort type.
Order(int index, int length, SortType type)intReturns the value of the index ordered by the sort type.
OrderBackToFront(int length)int[]Returns the value array ordered from back to front.
-
OrderBackToFront(int index, int length)intReturns the value of the index ordered from back to front.
example0,1,2,3,4,5,6,7,8 -> 8,7,6,5,4,3,2,1,0
OrderBackToMiddle(int length)int[]Returns the value array ordered from back to middle.
-
OrderBackToMiddle(int index, int length)intReturns the value of the index ordered from back to middle.
example0,1,2,3,4,5,6,7,8 -> 8,7,6,5,0,1,2,3,4
OrderFrontToBack(int length)int[]Returns the value array ordered from front to back.
-
OrderFrontToBack(int index, int length)intReturns the value of the index ordered from front to back.
example0,1,2,3,4,5,6,7,8 -> 0,1,2,3,4,5,6,7,8
OrderFrontToMiddle(int length)int[]Returns the value array ordered from front to middle.
-
OrderFrontToMiddle(int index, int length)intReturns the value of the index ordered from front to middle.
example0,1,2,3,4,5,6,7,8 -> 0,1,2,3,8,7,6,5,4
OrderMiddleToBack(int length)int[]Returns the value array ordered from middle to back.
-
OrderMiddleToBack(int index, int length)intReturns the value of the index ordered from middle to back.
example0,1,2,3,4,5,6,7,8 -> 4,3,2,1,0,5,6,7,8
OrderMiddleToFront(int length)int[]Returns the value array ordered from middle to front.
-
OrderMiddleToFront(int index, int length)intReturns the value of the index ordered from middle to front.
example0,1,2,3,4,5,6,7,8 -> 4,5,6,7,8,3,2,1,0
OrderMiddleToSidesBack(int length)int[]Returns the value array ordered from middle to sides.(Back ahead)
-
OrderMiddleToSidesBack(int index, int length)intReturns the value of the index ordered from middle to sides.(Back ahead)
example0,1,2,3,4,5,6,7,8 -> 4,5,3,6,2,7,1,8,0
OrderMiddleToSidesFront(int length)int[]Returns the value array ordered from middle to sides.(Front ahead)
-
OrderMiddleToSidesFront(int index, int length)intReturns the value of the index ordered from middle to sides.(Front ahead)
example0,1,2,3,4,5,6,7,8 -> 4,3,5,2,6,1,7,0,8
OrderSidesToMiddleBack(int length)int[]Returns the value array ordered from sides to middle.(Back ahead)
-
OrderSidesToMiddleBack(int index, int length)intReturns the value of the index ordered from sides to middle.(Back ahead)
example0,1,2,3,4,5,6,7,8 -> 8,0,7,1,6,2,5,3,4
OrderSidesToMiddleFront(int length)int[]Returns the value array ordered from sides to middle.(Front ahead)
-
OrderSidesToMiddleFront(int index, int length)intReturns the value of the index ordered from sides to middle.(Front ahead)
example0,1,2,3,4,5,6,7,8 -> 0,8,1,7,2,6,3,5,4
Rank(int length, SortType type)int[]Returns the value array ranked by the sort type.
Rank(int index, int length, SortType type)intReturns the value of the index ranked by the sort type.
RankBackToFront(int length)int[]Returns the value array ranked from back to front.
-
RankBackToFront(int index, int length)intReturns the value of the index ranked from back to front.
example0,1,2,3,4,5,6,7,8 -> 8,7,6,5,4,3,2,1,0
RankBackToMiddle(int length)int[]Returns the value array ranked from back to middle.
-
RankBackToMiddle(int index, int length)intReturns the value of the index ranked from back to middle.
example0,1,2,3,4,5,6,7,8 -> 4,5,6,7,8,3,2,1,0
RankFrontToBack(int length)int[]Returns the value array ranked from front to back.
-
RankFrontToBack(int index, int length)intReturns the value of the index ranked from front to back.
example0,1,2,3,4,5,6,7,8 -> 0,1,2,3,4,5,6,7,8
RankFrontToMiddle(int length)int[]Returns the value array ranked from front to middle.
-
RankFrontToMiddle(int index, int length)intReturns the value of the index ranked from front to middle.
example0,1,2,3,4,5,6,7,8 -> 0,1,2,3,8,7,6,5,4
RankMiddleToBack(int length)int[]Returns the value array ranked from middle to back.
-
RankMiddleToBack(int index, int length)intReturns the value of the index ranked from middle to back.
example0,1,2,3,4,5,6,7,8 -> 4,3,2,1,0,5,6,7,8
RankMiddleToFront(int length)int[]Returns the value array ranked from middle to front.
-
RankMiddleToFront(int index, int length)intReturns the value of the index ranked from middle to front.
example0,1,2,3,4,5,6,7,8 -> 8,7,6,5,0,1,2,3,4
RankMiddleToSidesBack(int length)int[]Returns the value array ranked from middle to sides.(Back ahead)
-
RankMiddleToSidesBack(int index, int length)intReturns the value of the index ranked from middle to sides.(Back ahead)
example0,1,2,3,4,5,6,7,8 -> 8,6,4,2,0,1,3,5,7
RankMiddleToSidesFront(int length)int[]Returns the value array ranked from middle to sides.(Front ahead)
-
RankMiddleToSidesFront(int index, int length)intReturns the value of the index ranked from middle to sides.(Front ahead)
example0,1,2,3,4,5,6,7,8 -> 7,5,3,1,0,2,4,6,8
RankSidesToMiddleBack(int length)int[]Returns the value array ranked from sides to middle.(Back ahead)
-
RankSidesToMiddleBack(int index, int length)intReturns the value of the index ranked from sides to middle.(Back ahead
example0,1,2,3,4,5,6,7,8 -> 1,3,5,7,8,6,4,2,0
RankSidesToMiddleFront(int length)int[]Returns the value array ranked from sides to middle.(Front ahead)
-
RankSidesToMiddleFront(int index, int length)intReturns the value of the index ranked from sides to middle.(Front ahead)
example0,1,2,3,4,5,6,7,8 -> 0,2,4,6,8,7,5,3,1