sort from stdin