I have this part of the code:
private void button3_Click(object sender, EventArgs e) { FolderBrowserDialog FBD = new FolderBrowserDialog(); if (FBD.ShowDialog() == DialogResult.OK) { foreach (string file in Directory.GetFiles(FBD.SelectedPath)) { listView1.Items.Add(file.ToString()); listView1.Items.Add(file); } foreach (string item in Directory.GetDirectories(FBD.SelectedPath)) { listView1.Items.Add(item.ToString()); listView1.Items.Add(item);
Tell me, how can I make sure that after I display the contents of the selected folders and subfolders in the listView, the contents can be sorted by date, size and file type?