Insertion Sort String Array, not sorting right
<p>Hello this is my method for a String Array insertion sort. It is returning bogus results to the console. Mainly just one array element over and over. Any help what needs to be changed is greatly appreciated.Thank you.</p>

<pre><code> public static void insertionSort(String[] a, int count) {
      int i, j;
      String Value;
      for (i = 1; i &lt; count; i++) {
            Value = a[i];
            j = i - 1 ;
            while (j &gt;= 0 &amp;&amp; a[j].compareTo(Value)&gt; 0) {
                  a[j+1] = a[j];
                  j=j-1;
            }
            a[i+1] = Value;

      }
       }
</code></pre>