Implemented a method to sort a stack in ascending order