title: Case Sensitive Sort Windows Command line
body: <p>I have a Python file which calls a <em>case sensitive</em> sorting routine provided by the underlying OS. This program was originally tested in <em>Unix</em>.</p>
  
  <p>The code fragment looks as follows:</p>
  
  <pre><code>def sort(path, filename, args=''):
     s = 'LC_ALL=C sort -S 50% --parallel=4 {0} {1} -o {1}'
     status = subprocess.call(s.format(args, os.path.join(path, filename)), shell=True)
     if status != 0:
        raise Exception('unable to sort file: {}'.format(filename))
  </code></pre>
  
  <p>However, running this program in <em>Windows</em> throws the error</p>
  
  <pre><code>"LC_ALL=C :Command not found"
  </code></pre>
  
  <p>and the default "sort" routine in Windows is case sensitive.</p>
  
  <p>Is there any corresponding case sensitive sort routine that I can call in Windows or modify this command to remove this issue?</p>