How do I fix my sleeping schedule?

I'm in my senior year of high school now , but my sleeping habits are horrible. I need to stand up at 6 am but go to sleep at 1 or 2 am , so I am always really tired in class. Please help (´つω・`)
How do I fix my sleeping schedule?
Post Opinion