Sorts records by gender