Fix sorting in browse mode