supports pipe and sort < filename > file