ExpressionEngineFunction eval() order of parameters


Which is correct: the example of the parameters or the listing of them?

Could someone explain why this is?


There are two valid syntaxes (afaik):

eval(aggregationFunction, interval, timeseries, start, end)
aggregationFunction(eval(interval, timeseries, start, end))


eval('SUM', 'HOUR', ConsumptionMetric, start, end)
sum(eval('HOUR', ConsumptionMetric, start, end)

Both do the same thing.