KeepLexOrder
This function keep a lexicographical order of a vector
KeepLexOrder(ref, order.vector, score.vector)
ref
order.vector
score.vector
Useful links