whats the best way to sort a vector?

hiI have a vector containing some integers in no particular order. I wish to have them sorted, so was wondering whats the most efficient way of achieving this. code would be very helpful. Thanks
[215 byte] By [kbgnata] at [2007-10-1 3:30:23]
# 1
java.util.Collections.sort(myVector);p.s. Unless you have an environment that uses Threads, use ArrayList instead of Vector.
Adeodatusa at 2007-7-8 22:21:20 > top of Java-index,Other Topics,Algorithms...
# 2
Thanks Adeodatus. changed it to ArrayList and sorted it that way. works perfect. thanks v v much
kbgnata at 2007-7-8 22:21:20 > top of Java-index,Other Topics,Algorithms...