Add support for sort() and join() methods