int i = 0;
IQueryable a = mdrq.GetMonthlyDataOrNew (meters);
var b = a.ToList().OrderBy (e => { i = Array.IndexOf (new string[] { "电消耗", "尖峰时段电消耗", "峰时段电消耗",
"平时段电消耗", "谷时段电消耗" }, e.SpecName);
if (i != -1) { return i; }
else { return int.MaxValue; } }).OrderBy (e => e.MeterCode);