Hi All, I am trying to sort a date array by hour:minute - and not the day/month. So far I have:
function sortFnc(a, b):Number { if ( a.date.getHours() < b.date.getHours() ) { return -1; } else { return 1; } } so_data.sort( sortFnc ); but I don’t think it works... anyone have any pointers? Kind regards Karim _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com