Sort files in a folder by their extension.