M
Mark Smith
Hi,
If I have an array of objects such as:
[
0: {FirstName:Chris,LastNameavidson}
1: {FirstName:Adam,LastName:McDonald}
2: {FirstName:John,LastName:Harvey}
3: {FirstName:Tom,LastName:Smith}
4: {FirstNameaul,LastName:Jones}
]
Does javascript provide a way to sort this array according to a given
field name?
If not, can you suggest a way to implement this?
Thanks,
Chris
If I have an array of objects such as:
[
0: {FirstName:Chris,LastNameavidson}
1: {FirstName:Adam,LastName:McDonald}
2: {FirstName:John,LastName:Harvey}
3: {FirstName:Tom,LastName:Smith}
4: {FirstNameaul,LastName:Jones}
]
Does javascript provide a way to sort this array according to a given
field name?
If not, can you suggest a way to implement this?
Thanks,
Chris