public object EvaluateEnumMethod( EventBean[] eventsLambda, ICollection<object> enumcoll, bool isNewData, ExprEvaluatorContext context) { if (enumcoll == null || enumcoll.IsEmpty()) { return enumcoll; } IList<object> list = new List<object>(enumcoll); if (_descending) { Collections.SortInPlace(list, Comparers.Inverse(Comparers.Default<object>())); } else { Collections.SortInPlace(list); } return list; }