Fix sorting by bytes, files and custom fields