A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do i sort a mised array?

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    6

    Question How do i sort a mised array?

    Hi guys,

    I have an array that has mixed data of strings and integers and i want to sort it by the LAST element which is an integer:


    myArray[string,string,integer,integer,string,integer]

    How do I do this??

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    To be sure that I understand you correctly, when sorting via the last index value of the array(in this case an integer) the results should be sorted as (int, int, int, string, string, string)?
    Wile E. Coyote - "Clear as mud?"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center