'Sample.rank' is now polymorphic