in reply to Re: Date to be sorted in descending and time in ascendingin thread Date to be sorted in descending and time in ascending
use Sort::Key::Maker sort_dates => sub { /(.{8})(.{6})/ }, qw(-int int +); my @sorted = sort_dates(@dateArray); [download]