Change footnotes to endnotes

I couldn’t get it to work.  Endnotes go after the section breaks too.  The only way I could see to get the endnotes before the bibliography was either CG’s final edit   – or submit it as is.  I think the publisher should be able to sort it out, if they need it flipped. I was able to just cut and paste it at the end after the endnotes, but it just creates a new bibliography if i was still writing and inserted a new endnote.