Column Sort

Paste an array of numbers (tab, comma, or space separated, any number of columns as long as every row matches). Choose how it's sorted and how many columns to output below.

Input
Sorted output