Bugfix for downloader sorting

The downloader was crashing due to a call to sorted() whose arguments were not comparable. Using key=str fixed the problem for me and made sense as a way to sort things in the download tree.