xbmc/xbmc — pull request #1731 by dragonflight (2012-11-04 23:41:53+00:00)
Title: in Files mode sorting by file ends up sorting by filename which leads to

unexpected results when using DVD foders or movies in Folders.
while browsing folder movies the sort order will be (with the last two in random order)

movies/moviename3/avideo.avi
movies/moviename1/video.avi
movies/moviename2/video.avi

This patch fixes that and one gets the expected order of
movies/moviename1/video.avi
movies/moviename2/video.avi
movies/moviename3/avideo.avi
see http://forum.xbmc.org/showthread.php?tid=143834 for some discussion

I haven't investigated yet, but things are even stranger now as the name of the set the video belongs to has been appended to the filename so if the movie was part of a set it would sort by the set name