Removing first key value pair from hash
===

I have a hash like this 

    %hash = ('test' => 1,
         'test1' => 2,
         'test2' => 3,);

I want to sort this hash and delete the first key value pair from hash. If I do this,
(sort keys %hash)[0], I get access to first key. However, how do I delete that key value pair. if i do
 delete (sort keys %hash)[0], perl throws an error
delete argument is not a HASH or ARRAY element 