how to modify record number in endnote

You can’t – they are an autogenerated number.  If you sort your library as you want it to apear and copy it to a new library, it might work.