Fix #8819 sorting

@PVince81 Took me a while cause I had a lot to learn, better have a good look :)
I find it a bit strange to have the small point of the triangle pointing upwards when the biggest files are on top, however you see both being used so I left them like they were.

Comments are welcome.

It seems the "show" argument isn't used anywhere in your new code.
Did you forget to commit the modified files ?

If this is not used, please remove it.