export LC_ALL=C sort -k 2,2rn p.txt > d.txt
Linux排序不准确的问题,用以下两行代码解决
原文:http://www.cnblogs.com/finallyliuyu/p/6433433.html