Hey everyone. I have a database that I make into an array and sort in this following code.
open (ORGDB,"<$database"
@old_list=<ORGDB>;
@ODB=sort(@old_list);
close (ORGDB);
Where $database points to the database.
A sample database is
1/07/01|Test|Whatever
1/04/01|Test2|Whatever
It currently sorts by the first set which would be the dates. Say I want to sort by the column of Test and Test2 how do I change my code to sort by that? Thanks.
open (ORGDB,"<$database"
@old_list=<ORGDB>;
@ODB=sort(@old_list);
close (ORGDB);
Where $database points to the database.
A sample database is
1/07/01|Test|Whatever
1/04/01|Test2|Whatever
It currently sorts by the first set which would be the dates. Say I want to sort by the column of Test and Test2 how do I change my code to sort by that? Thanks.