No one was able to answer hulagutten's question:

Python problem. Sorting files in subdirectories.?

How do I get a list with complete paths of all files including in subdirectories. This list needs to be alphabetically ordered according to directories and then file names.

Current code is here the problem is that it does not sort according to the names of the subdirectories:
for root, dirs, files in os.walk('C:\Program Files\MySQL\MySQL Server 5.1\csvdata'):
for name in files:
if re.compile("""(csv$)""", re.IGNORECASE).search(name):

This is hulagutten's first question.