Fixed listview sorting, removing of duplicates, display of duplicates