Add sort() and join() methods