Tests for sorting of integer vectors in primitive/nth_root_list