Fix sort comparison.
Display a warning message in the download confirmation overlay when no file is available.

Fixes #463.
Merge pull request #568 from 4teamwork/deif-fix-document-tooltip

Display a warning message in the download confirmation overlay when no file is available.