Hello Guys,
I am still confuse about, Sort() and then Reverse() methods in Array.
Can you help me.
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Blocked AccountPosted Jul 7, 2011, 11:58 PM
Sort(): simply sorts the array.
for ex:
var arrayName=["Bob", "Bully", "Amy"]
if you will call
arrayName.Sort() then array becomes like that ["Amy", "Bob", "Bully"]
arrayName.Reverse() then array becomes like that ["Amy", "Bully", "Bob"]
this is the basic difference between these two commands.
Jiteendra SampathiraoPosted Jul 8, 2011, 12:15 AM
Go through this link:
you'll definitely get idea...
Sort and Reverse
hope it help you.......