Please see previous post:
Great solution with a little snag because I did not supply enough information.
It works with one project, however there will be multiple projects so the tasks will need to be grouped by project.
Can the following be altered to somehow say "grouped by project id"?
er<" & [Order]),1)