.reverse() and .sort(), test and doc fixes