Fixed sorting issue on steps in dashboard