Refactored alphaSort and navigate