Reset the view when changing display mode.
Fix sorting of container list (see #10242)