I'm not sure I understand what you mean... I think what I need is a date to unix function like what Links has. I was able to make Links sort by date using that function because it converts the dd-mmm-yyyy format to unix time. It seems like I could change this:
to
foreach $rp (sort { &date_to_unix($a->{$sort_on}) <=> &date_to_unix($b->{$sort_on}) } values %record){
As long as I had a "date_to_unix" function that converts mm/dd/yyyy to unix time, it seems like that would work. The date to unix function in Links converts dd-mmm-yyyy. Can anyone help with this?
Code:
foreach $rp (sort { chr($a->{$sort_on} + 97) cmp chr($b->{$sort_on} + 97) } values %record){to
Code:
foreach $rp (sort { &date_to_unix($a->{$sort_on}) <=> &date_to_unix($b->{$sort_on}) } values %record){
As long as I had a "date_to_unix" function that converts mm/dd/yyyy to unix time, it seems like that would work. The date to unix function in Links converts dd-mmm-yyyy. Can anyone help with this?