Data resampling

Hello.

I’m trying to extract a sample from a pandas dataframe, but it doesn’t come in (date) order.
Any ideas on how to fix this?