TVector: fixed a bug in Sort() while vector is empty