I just noticed the following (see screenshots)
- Look at a directory listing in the Files tab:

- Type
p to restrict what is shown:

- The order of the displayed files changes dramatically!!
This is really disconcerting.
It's probably best fixed by reading the source code...