[ic] perl sort

Jason Kohles email@jasonkohles.com
Tue, 13 Mar 2001 12:07:04 -0500

On Tue, Mar 13, 2001 at 09:06:33AM -0800, Mat Jones - booksellersolutions.com wrote:
> I am using the sort function to sort an array of results from an sql query,
> and it returns the results by name but it is case sensitive.
> eg - sort {$a->[1] cmp $b->[1]} @array;

sort {lc($a->[1]) cmp lc($b->[1])} @array;

Jason S Kohles