fixed deprecated ->order on criteria object