Sorting VS Row Rearrange

I have a watchlist containing a list of stocks, and one of the popular usages of such a list is rearranging the rows (dragging and dropping selected rows to a favorite user position). Now, let's add a sort functionality to that list, and we have a logic problem; sorting the list will affect the position of my dragged row. What are some best practices to handle this situation? Some possible solutions: 1.Avoid drag & drop for the rows. 2. Ditch the sorting and keep the rows rearrangement. 3.Create some custom solution pinning the dragged rows to the top in some way. 4.Sort the list from scratch and let the user drag and drop his rows again, but this is for sure a bad user experience. I wonder if other platforms are dealing with such problems? Do you know if there're references to a solution or a nearby solution? Is it always one solution and the two cannot live together?

I'll be happy to hear your thoughts.