in reply to Error in code - read-only value?
sort returns a sorted list, so
sort {$a->{ID} <=> $b->{ID} } @all_hashes
(without the assignment) should be sufficient.
Not: Grossly uninformed post here. You'd want to say
@sorted_all_hashes = sort {$a->{ID} <=> $b->{ID}} @all_hashes
In Section
Seekers of Perl Wisdom