my @sorted = sort { $a->{empid} <=> $b->{empid} } @{$parsed->{employees}};