Removed duplicates from activity sorting