To reorder your habits:
Tap on the “Sleep Ritual” section circled below

Tap on the three horizontal dots in the right hand corner of the screen
Tap on “Reorder and Remove habits”
Tap on the three lines beside the habit name to drag the habit and order your habits as you wish!