WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
3807 Views
|
3 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Wolfram Language
Sorting a result
Fizixx :)
Fizixx :)
Posted
11 years ago
If I have input and output like the following:
How could I format the result into alphabetical order, and count the number of items?
Thanks
POSTED BY:
Fizixx :)
Reply
|
Flag
3 Replies
Sort By:
Replies
Likes
Recent
0
Fizixx :)
Fizixx :)
Posted
11 years ago
Hey, yes, that's great, thanks!
I was playing with the "Sort[ ]" function, but I was obviously using it incorrectly, as I was not getting these nice results.
Thanks again!
POSTED BY:
Fizixx :)
Reply
|
Flag
1
Frank Kampas
Frank Kampas, Physicist at Large Consulting
Posted
11 years ago
Sort[AstronomicalData["Jupiter", "Satellites"]]
Length[%]
POSTED BY:
Frank Kampas
Reply
|
Flag
1
Nasser M. Abbasi
Nasser M. Abbasi, student
Posted
11 years ago
r = AstronomicalData["Jupiter", "Satellites"];
Sort[r]
Length[r]
To make a small table
r = Sort[r];
TableForm[Table[{i, r[[i]]}, {i, Length[r]}]]
POSTED BY:
Nasser M. Abbasi
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how »