sort function checks if child id is same as primary place id
Update indices to make distinction with 0 being primary site
Defensive
Merge pull request #69 from ox-it/primary-place-first

sort function checks if child id is same as primary place id