Remove unecessary variable call, `#sort!` always returns an array
Merge pull request #10131 from Agis-/metal_helper

Remove unecessary variable call since `sort!` always returns the sorted array