Sorting family ID list