Back-ported actiity sorting fix .
Merge pull request #917 from DirectEmployers/activity-sort-fix

[PD-636] Remove duplicates caused by sorting by Activity