Sort Directory lists
October 9, 2022
6:35 PM

gci = Get-ChildItem
Sort by CreationTime
gci . | ? { $_.PSIsContainer } | sort CreationTime | select name,creationtime
Sort by Name
gci . | sort Name | select Name,CreationTime