add resort method to Vec and Slice