我有一个看起来像这样的课程
class FeaturedListing
{
public string Title { get; set; }
public string Link { get; set; }
public string Published { get; set; }
public string Views { get; set; }
public string Featured { get; set; }
public string CategoryName { get; set; }
}
然后我有一个看起来像这样的列表
public static List<FeaturedListing> FeatiredListingsList = new List<FeaturedListing>();
向该列表添加几个对象后,如何按Views 视图正确排序如下所示
0 visits
52 visits
5 visits
等等。
相关分类