Made stepwork dao order by id instead of endtime because some stepworks have a null endtime.