The proof on Calculating the time of a Brachistochrone uses the equations of a cycloid. But the equations show a cycloid that looks like

But I thought that the brachistochrone was dependent on gravity. So shouldn't the cycloid be upsidedown? Or does it not matter?