A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Objects in an Array

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    UK
    Posts
    493

    Objects in an Array

    Is it possible to sort an array of Objects, using a common property of all objects contained in the array?

    cheers

  2. #2
    Junior Member
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8
    Have you tried:

    myArray.sortOn(["propertyname"]);

    Square brackets and speech marks required
    doubleFink

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Location
    UK
    Posts
    493
    magic, cheers mate

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