replaced unused/undefined use of ['order'] with ['order'] to make 'order by' functionality work properly