Well that was a typo...but even when its not, it should return -1, not 0.

Changed the test script above to correct date. It's the empty element at the beginning of the array that's tripping it up. Remove that blank element and it works as expected.


Edited by ShaneEP (2011-08-19 08:50 PM)