Refactoring and sorted displaying Method bug