To watch all videos with mpv in predefined sorted order one can do
mpv can accept multiple files as its argument and play them one after another.
I would like to pass to mpv those files but randomly ordered, so each time I start watching it comes up with something unexpected.
Here what I've tried so far
ls /path/to/videos/* | sort -R | while read file; do mpv $file; done
This variant does not satisfy my needs, since it starts new instance for each video and new window always gets focused.