when I try to fix stuff:

comments

You’re asking how to fix this but I’m asking how did you do this

I collected data over a long period of time and I am now trying to plot it.

The x labels were too crowded. So I tried to remove alternate labels.

Now the inbuilt sorter is sorting blank labels to the start and dates to the end…

I have no idea how to fix it, except I could rewrite the part