Unable to sort references by order of appearance.

Hi all,

I have updated my thesis over the course of time by first writing and then adding references later using endnote.

I found that towards the end of compilation the order of references by mentioning has gone abrupt. Now that I have dedicated nearly one week adding the references it seems cumbersome to go through the whole thing from the scratch. I have tried few solutions from the community.

But unfortunately, it doesn’t work.

Thanks in advance.