3 Replies Latest reply: Jun 23, 2007 8:30 PM by 807605 RSS

    Difficulty sorting object based arrays.

    807605
      I have an array of objects made from my own custom class. each object has a name and age, so to access each attribute individually i am using the following technique
      object[0].age
      However i am absolutely wracking my brains as to how to sort this array so that the object with the highest age is at index 0.

      Can anyone help i've been trying and searching for a couple of days now and still no luck.

      Thanks in advance