add transpose, sortBy, and sortWith