Sort text lines alphabetically on the command line with the free Swiss File Knife for Windows, Mac OS X and Linux.

sfk ... +sort

sort text lines, case insensitive by default.
requires a previous command producing text output.

   -case        case sensitive text comparison
   -rev[erse]   reverse sorting order

web reference

   sfk filter csv.txt +sort
      print sorted contents of csv.txt
   sfk filter csv.txt +sort +view
      shows output with the dview GUI tool