Click here to Skip to main content
16,020,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a list of images displaying in a div content, with sort button,when user clicks sort button all the images must be arranged according to their alphabetical ...i had tried much in java script to achieve this,..but ..:( i cannot achieved this

I will be very thankful for any reply ...:)
Posted
Updated 1-Dec-14 0:39am
v2
Comments
Kornfeld Eliyahu Peter 1-Dec-14 6:11am    
Try jQuery sort function...

Hi use following

var images = ["", "", "", ""];// here place your image names
images.sort();// use sort function of javascript.

Thanks,
Mukesh
 
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