built-in sort from a file