added sorting and misplaced title