Sort in accending order using Linux shell script in Ubuntu

In .sh file blow command

sort myfile.txt






In myfile.txt

1

6

2

9

1