I have a List of items I call pages.
Each page items has the following:
int id { get; set; }
string filename { get; set; }
int status { get; set; }
The problem I have is that the filename fields are ordered like this:
1.tif
10.tif
and I need them ordered in the list like this:
1.tif
2.tif
I tried the following without luck:
pageList.Sort((a, b) => String.Compare(a.ImageName, b.ImageName));
Thanks!