Help! Alphabetizing lists using Google Blockly!

263 views
Skip to first unread message

Kristi Summerlin

unread,
Aug 28, 2013, 11:11:16 AM8/28/13
to blo...@googlegroups.com
So this code prompts the user to enter names and then displays them. However, how do I code it to where google automatically alphabetizes them? Help! Thanks so much! <3
Screen Shot 2013-08-27 at 10.19.02 AM.png

Ellen Spertus

unread,
Aug 28, 2013, 11:31:33 AM8/28/13
to blo...@googlegroups.com
Could you give us some context?  Is this a school assignment that you've been assigned or are creating for others to do?

In any case, you might want to read about sorting algorithms.  Insertion sort might be the most useful, although it isn't the most efficient.

I believe you can use '<' (in the Logic category) to compare strings alphabetically.

Ellen


On Wed, Aug 28, 2013 at 8:11 AM, Kristi Summerlin <kristi...@gmail.com> wrote:
So this code prompts the user to enter names and then displays them. However, how do I code it to where google automatically alphabetizes them? Help! Thanks so much! <3

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jim Brown

unread,
Aug 28, 2013, 11:40:15 AM8/28/13
to blo...@googlegroups.com
Hi Kristi

If you use the Text > to UPPERCASE block, there is a pulldown in option in there called "Title Case"
I believe this is what you mean?

regards, JIm

Kristi Summerlin

unread,
Aug 28, 2013, 6:31:34 PM8/28/13
to blo...@googlegroups.com
Thanks so mu h!
--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/aoawBeI2Dzs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.

Jorrit Tempels

unread,
Nov 12, 2017, 3:15:38 PM11/12/17
to Blockly
How did you solve this?

Op woensdag 28 augustus 2013 17:11:16 UTC+2 schreef Kristi Summerlin:

Neil Fraser

unread,
Nov 13, 2017, 11:42:55 AM11/13/17
to blo...@googlegroups.com
There is a list sorting block now:
Inline images 1

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages