order commands by dependency before displaying on build-run home page