Support sorting in list mode without selecting a position (see #5802)