It is the sort order which by default is 400. I changed that to 101 just after the subtotal and it is fine.