actually, since David Bowie’s sortname would be “Bowie, David”, they’d also be under B
what you’re looking for looks pretty similar to my filenaming script, which I’ve posted here. I believe you can simply add slashes where you want to add a directory.