std:std.collections.Stack<T>.Sort

Method Sort:Void( ascending:Int=true )
Method Sort:Void( compareFunc:Int(T,T) )
Method Sort:Void( compareFunc:Int(T,T),lo:Int,hi:Int )

Sorts the stack.

Parameters
ascending ascending True to sort the stack in ascending order, false to sort in descending order.
compareFunc compareFunc Function to be used to compare values when sorting.
lo lo Index of first value to sort.
hi hi Index of last value to sort.