sorted() only sorting by first digit
<p>i need to sort the first column of a table. it looks something like</p>

<pre><code>6000 799 
7000 352
8000 345
9000 234
10000 45536 
11000 3436
1000 342
2000 123
3000 1235
4000 234
5000 233
</code></pre>

<p>i want the first column to be in ascending order, but it is sorting it by only the first digit, not the value of the whole column, i.e.</p>

<pre><code>1000 342
10000 45536
11000 3436
2000 123
</code></pre>

<p>But i want</p>

<pre><code>1000 342
2000 123
3000 1235
etc
</code></pre>

<p>Currently trying:</p>

<pre><code>SortInputfile=open("InterpBerg1","r")
line=SortInputfile.readlines()
line.sort()
map(SortOutputfile.write, line)
</code></pre>
