Posts: 565
Name: surajit ray
Location: inside the heart of my friends
|
That function is sorting randomly. You need to write your own function to sort in descending order.
Use this function to sort in descending order:
Code:
function compare(x, y)
{
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
}
theimages.sort(compare);
__________________
I am not smart, that's why i don't act smart
Please login or register to view this content. Registration is FREE
Last edited by jito; 04-24-2007 at 12:04 PM..
Reason: adding
|