I understand commands such as ls | sort -ncan do certain sorting.. but I would like Horizontal sorting just as it's being done via ls command.Test in Empty folder: touch 1 2 12with ls commandls1  12  2What I want to see is:1  2  12Horizontally just like the ls command.
ls : sort as: 1 2 12 ( Side by Side )
ls;sort
For the BSD-inclined who do not have GNU coreutils installed and therefore can't use ls -v: $ printf '%s\n' * | sort -n | column 1       2       12The printf will generate a list of names, each on its own line.  The sort will sort these numerically.  The column utility will arrange these into columns, much like what ls does by default.