'Sort by folder' option to library

I found this option ‘Sort by folder’ available in Mixed Library only but, not in other library.
How can i sort my library in Music, Movies, Photos etc to be sorted by folder and actually to see it my folders.
In the mixed folder when i press the Sort button a new windows is open with drop-down list with selections and there i can choose in the “sort by” section the “Folders” while in the Movies if i press the Sort button i get different option and “Folder” does not exist.

Thank you, for anyone who’s helping with this.