sorting files

can anyone help me with sorting files in a folder. that is I want to pass a folder to a function that will sort the files by extension type.
Topic archived. No new replies allowed.