make sure nulls go last in bill xml