ARIMA

Includes changes from code review.  
sort inside group,all again?