Library Directory and File sorting

Early 2021 clean-up: duplicate