How to sort a List of FileInfo(in C#.NET) just like in a Windows folder? (Same sort

function)

For eg. consider a set of files

b (1).txt
b.txt
b (2).txt

In Windows if we arrange by name the output will be
b.txt
b (1).txt
b (2).txt

When I used FileInfo the list contained files as
b (1).txt
b (2).txt
b.txt

I want it to be sorted as in Windows
Please Help me...

Split the files into mainpart and extension, then sort without extension.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.