fix error in normalization of sort criteria. closes #101