Error 331

Repeated subscript in REORDER vector
 
The "MAT REORDER..BY X,D" statement requires that the subscripts specified in X be unique.