Implement sorting in the favourites list

Implement sorting the list of favourites in the same way as the downloads
list.  This resolves #126.