linux sort does case-insensitive sort by default. To inactivate it, you should first export LC_ALL=C then sort.

http://www.skorks.com/2010/05/sort-files-like-a-master-with-the-linux-sort-command-bash/