Date:  09/28/2011 07:34:45 PM Msg ID:  004347
From:  Steven Gruner Thread:  004345
Subject:  Re: I\'m having a problem sorting an array

I feel like an idiot, I ran a limited data set and it worked perfectly, so the problem appears to be some goofy data somewhere.

The array has over 19,000 rows, so wish me luck in finding the row or rows causing this error.

 

Sent by Steven Gruner on 09/28/2011 06:27:01 PM:

 I have an array named a_array with the following:
 
(1,1) = "ANA"
(1,2) = "38LD0HDN-38L1D0HDR"
(1,3) = "2010-08-24"
 
(2,1) = "ANA"
(2,2) = "38LD0HHV-38L1D0HHZ"
(2,3) = "2010-08-24"
 
(3,1) = "ANA"
(3,2) = "38LD0HI3-38L1D0HI7"
(3,3) = "2011-07-23"
 
 
I need to sort the array by the date in descending order, but it keeps on giving me a data type error when I use asort(a_array,3,-1,1)