WSWSVoucher [] wswsv = new WSWSVoucher[4];
wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray<WSWSVoucher>();
wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToArray<WSWSVoucher>();
WSWSVoucher [] wswsv = new WSWSVoucher[4];
wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray<WSWSVoucher>();
wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToArray<WSWSVoucher>();
转载于:https://www.cnblogs.com/liang-ling/p/3804303.html