hello
i got array with last opened pages and i wanna ask you how to order items in datalist by this ordered array
i tried to add items one by one but it doesnt work
$idList = Session::get('recentproducts');
$dl = DataList::create('ProductPage')->byIDs(array($idList[0]));
for ($i = 1; $i < count($idList); $i++)
{
$dl->addMany( DataList::create('ProductPage')->byIDs(array($idList[$i])));
}
return $dl;
aby better idea?
thx