I have a list of items that I call.
Each page element has the following meanings:
int id { get; set; }
string filename { get; set; }
int status { get; set; }
The problem is that the file name fields are arranged as follows:
1.tif
10.tif
and I need them to be ordered in a list:
1.tif
2.tif
I tried the following with no luck:
pageList.Sort((a, b) => String.Compare(a.ImageName, b.ImageName));
Thank!
source
share