title: Checking column values are in the same order awk/bash
body: <p>I have an input file:</p>
  
  <pre><code>A 23
  A 45
  A 32
  A 61
  A 78
  B 23
  B 45
  B 32
  B 61
  B 78
  C 23
  **C 32
  C 45**
  C 61
  C 78
  </code></pre>
  
  <p>The first column specifies a group, and the second column specifies some values for that group.</p>
  
  <p>I want to check if the order of values for each group is the same.</p>
  
  <p>For example, the values are 23,45,32,61,78 for group A. The values are in the same order for group B. But in group C there is a violation of the order (in bold), therefore the output should simply be "false".</p>
  
  <p>If group C, the order of values is followed as well, the output would be "true".</p>
  
  <p>Note that the groups in the first column are all unique, there is no repeated group.</p>