Kim Dotcom, the founder of banned file-sharing site Megaupload, was ordered to be extradited from New Zealand to the US to face trial.