Added a few more tests for the IndexReorganizer.
Converted the IndexReorganizer to sort indices by both data type and source reference.