fixed bug, added order by on fetch the next trigger