About 20,000 packages an hour are sorted by machine at JD.com's largest robot-run warehouse in Shanghai, China.

The company has three million orders a day ranging from smartphones and televisions to nappies.

BBC Click's Dan Simmons finds out how the company can deliver items within a few hours and sometimes within minutes.

More at BBC.com/Click and @BBCClick.