Apple Interview Question

How will you sort a file, terabytes in size in Hadoop.