O(n) Key–value Sort with Active Compute Memory