View Single Post
Old 07-13-2004, 10:32 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
sorting objects arrays by object properties

does anyone know a good article or an easy way to sort an array of objects by any string parameter of that object?

for example, a user object:

user.firstName
user.lastName

if i have an array of users, i want to be able to sort that array based on either first or last name.
__________________
Mike
sde is offline   Reply With Quote