sorting an array

View: New views
2 Messages — Rating Filter:   Alert me  

sorting an array

by richard terry-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a feeling I've missed a recent thread on this, but I wondered if there
was any easy way to sort an array of names alphabetically for printing, where
the names are pulled randomly.

Regards

Richard

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel

Re: sorting an array

by Fabien Bodard-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dim MyStringArray as string[]

MyStringArray = ["Alphonse", "Zephir", "Raymond", "Loyal", "Richard"]

Print MyArray.Join("\n")

MyString.Sort

Print MyArray.Join("\n")

2009/10/29 richard terry <rterry@...>:

> I have a feeling I've missed a recent thread on this, but I wondered if there
> was any easy way to sort an array of names alphabetically for printing, where
> the names are pulled randomly.
>
> Regards
>
> Richard
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel@...
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-devel mailing list
Gambas-devel@...
https://lists.sourceforge.net/lists/listinfo/gambas-devel