Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old November 23rd, 2006, 02:55 PM   #1
New Member
 

Join Date: Nov 2006
Location: UK
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 pintofbest is on a distinguished road
Sort an array of mixed content

I have an array which contains a mixture of strings and numbers representing an address line. For example "20 Main Street" etc

I have found examples of functions which sort alphabetically or which sort numerically. Using the alphabetic sort would mean that for example "16 Main St", would come before "2 Main Street".

Does anyone have an example of a function which would sort this kind of mixed data satisfactorily?

Thanks in advance
pintofbest is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
array , javascript , sort


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi dimensional array sort by x but randomize where x is equal nate2099 PHP 0 January 21st, 2008 05:17 AM
Sort a three dimensional array?? nate2099 PHP 3 August 1st, 2007 12:21 PM
Sorting a new array from an existing array Ozeona Flash and ActionScript 2 September 20th, 2005 04:43 AM
array unable to check another array so as to be displayed Ozeona Flash and ActionScript 1 August 5th, 2005 06:26 AM
sort mailbody si2n Classic ASP 8 January 6th, 2004 11:19 AM


Search Engine Optimization by vBSEO 3.2.0 RC8