title: Bash: Sort text file by bytewise case sensitive sort command or using python sort command
body: <p>Text File<br>
  <strong>using sort -s</strong>
  (case sensitive)</p>
  
  <pre><code>Act
  Bad
  Bag
  Card
  East
  about
  across
  back
  ball
  camera
  canvas
  danger
  dark
  early
  edge
  </code></pre>
  
  <p><strong>using sort -f</strong> (Not case sensitive)</p>
  
  <pre><code>about
  across
  Act
  back
  Bad
  Bag
  ball
  camera
  canvas
  Card
  danger
  dark
  early
  East
  edge
  </code></pre>
  
  <p>The words starting with an uppercase are sorted alphabetically between the lowercase words.   </p>
  
  <p>What I want is that the words in uppercase are at the start of each next letter (upercase alphabetically sorted):<br>
  <strong>Expected output</strong>:</p>
  
  <pre><code>Act
  about
  across
  Bad
  Bag
  back
  ball
  Card
  camera
  canvas
  danger
  dark
  East
  early
  edge
  </code></pre>
  
  <p>How can I realize this using bash or python sort command?</p>