I am trying to write a function to sort multiple columns of data in a cgi script, however, I am not having any success.
the function I am using is as follows:
@ass_temp = sort {
(split '\|', $a, 1)[2] cmp
(split '\|', $b, 1)[2]
} @assignment;
@assignment = @ass_temp;
and the data...