Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My data is in the form:
device name
Size
location

I would like it to be in an structured array, i am not sure if this is possible jscript it is in some other languages, so it would look something like:

var AA new array of type (size,location,name);

AA[1].size = 10;
AA[2].location = 45;
AA[3].name = "Cisco router";

And so be able to sort this array AA on for example size or name.
Is it possible to create this in jscript.
Posted

You can provide a sort function that determines how to sort. Check this link:
http://msdn.microsoft.com/en-us/library/4b4fbfhk%28v=vs.85%29.aspx[^]

Good luck!
 
Share this answer
 
did you even read what i wrote ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900