can now sort borrowed vectors