adding ascending sort for a stack ex