Simple ordering of two vectors in c.