From: Mr_Tibs Date: 2007-10-13T06:00:03+09:00 Subject: Re: sort double-dimensional array by column Thanks mortee. That sort of worked. Unfortunately, it puts those entries that have the 6-th column = nil, at the start of the sorted array (instead of at the end). I don't really understand the technique used. You are sorting by row, but you are somehow defining and using an array with 2 elements (that's what the square brackets do, right?). Tiberiu