Fix: `dt-init sorting` as 1D array didn't get indexing correct

* The sort handler was expecting to deal with a 2D array, so we always
  dropped into the single column first sort condition.
* See thread 20811 for more information.