Generics Sorting and begin Stack