Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [ic] perl sort



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
jason@jasonkohles.com

_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: