Shared+Events+-+Sort+Witnesses+by+Consanguinity+plus+Name

The WitnessOrder field in WitnessTable controls the order of output in the display of witnesses and in narrative reports but RootsMagic 7 provides no control for it.

This script modifies the WitnessOrder values so that they are sorted: Clearing the relationships prior to execution results in a purely alphabetical sort.
 * 1) Primary: Consanguinity of witness to reference person used by the RootsMagic SET RELATIONSHIPS function
 * 2) Secondary: Alphabetical order of the primary name of each person, including those not in a tree.

It sets negative values in WitnessOrder so inspection of the WitnessTable readily reveals those set by the script.