字典排序 不要写错顺序

var dicSort = from objDic in dic orderby objDic.Value descending select objDic;
    foreach(KeyValuePair<string, int> kvp in dicSort)
      Response.Write(kvp.Key + ":" + kvp.Value + "<br />");

posted @ 2016-08-29 15:34  pengde  阅读(181)  评论(0编辑  收藏  举报