The scale of a sundial is designed so that the differences in the direction of shadows during the day indicate time. In the morning, shadows are long and point toward the west. As the day progresses, shadows shorten. At noon, when the Sun is at its highest point in the sky, shadows are shortest. In the afternoon, shadows are longer again and in the opposite direction, toward the east.
For more interesting facts about sundials check out this website.