A sextant was used even before astrolabes came into existence. The primary purpose of a sextant was to calculate the angle between the horizon and heavenly bodies like stars, the sun, the moon, etc. Astrolabes, on the other hand, were used to calculate distances between celestial bodies.