Citation numbering is referring to wrong citation

I am in the process of learning how to use LaTeX. I am working on overleaf to write my research paper. I started having issues with the citations. When I write the in text citation and recompile the file, the number is referring to different citation. Also, the actual citation numbering I am referring to, is not appearing in the reference list. Can anyone help me out with it? All the citations before citing number 37 appears correctly and in the correct order.

This is what I am writing:

Random Forest had AUC score for static learning was 0.9148 and incremental learning
was 0.9013.~\cite{r(37)}


This is how it appears after recompiling:

Random Forest had AUC score for static learning was 0.9148 and incremental learning was 0.9013. [28]

These are all the packages I am using.

\documentclass[12pt]{article}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{natbib}
\bibliographystyle{unsrt}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subfig}
%\usepackage[demo] {graphicx}

\PassOptionsToPackage{graphics}{,demo}
\usepackage{float}
\usepackage{setspace}
\usepackage{microtype}
\usepackage{pdfpages}
\usepackage{inputenc}
\usepackage{textcomp}
\usepackage{mwe}
\usepackage{titlesec}
\usepackage[english]{babel}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\setstretch{1.2}

\begin{titlepage}
\begin{center}

• Welcome to TeX.SE. Do any of the citation call-outs whose numbers don't seem to be right occur in the arguments of \caption statements in figure and/or table environments.? – Mico Jan 5 at 18:21
• No. The citations are in the text only. – 08223003 Jan 5 at 18:30
• The code you've shown so far doesn't contain a single \cite instruction. It's thus not (yet) possible to replicate the issue you're looking to fix, let alone come up with a diagnosis and cure. – Mico Jan 5 at 18:47
• r(37) is a rather strange citation key but should work as long as you have a bibliography entry with that key so if you are using bibtex something like @article{r(37) or if you are not using bibtex a bibitem{r(37)} but you have shown no code relevant to a bibliography. – David Carlisle Jan 5 at 20:14
• there does not appear to be anything wrong with the output you show. is [28] not the number you expect? – David Carlisle Jan 5 at 20:16