Sort the planets based on its distance from sun. (Nearest planet at top)