Group Abstract Group Abstract

Message Boards Message Boards

1
|
6K Views
|
3 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Sorting a list of astronomical objects by distance from Earth

Posted 3 years ago

I have a list of astronomical objects that I need to sort by distance from Earth:

{Alpha Centauri, Andromeda Galaxy, Antennae Galaxy, Eagle Nebula, Jupiter, Moon, Orion Nebula, Pleiades Star Cluster, Pluto, Ring Nebula, Sombrero Galaxy, Sun}

Entering "distance {list}" returns a table of distances in different units, and using the Sort and SortBy functions with distance will only interpret one or two items from the list. Is there a way to sort these distances, or at least force all the distances to the same unit?

POSTED BY: Owen Lieberman
3 Replies
Posted 3 years ago
POSTED BY: Rohit Namjoshi
POSTED BY: Jack I Houng
POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard