title: JqGrid : Sorting of a column which have mixed controls; Label and Select
body: <p>JqGrid Default sorting works on Label's Text and Selected Value of Select/Dropdown
  Formatter is given below
      <code>{ name: 'DI', index: 'DI', width: 125, fixed: true, title: false, formatter: BuildDI }</code></p>
  
  <p>Based on permission, Label/Dropdown is rendered</p>
  
  <pre><code>// Generate Dropdown
  function BuildDI(cellvalue, options, rowObject, action) {
  
  
      if (bEditPermission == false ) {
              s = getTextBasedOnVal(Arryoptions, val) ;
          }
      }
      else {
          s = '&lt;select OrgVal="' + cellvalue + '"style="width: 100%" class="cSL C" id="_DI_' + options["rowId"] + '" value="' + val + '"&gt;&lt;option value=""&gt;&lt;/option&gt;'
          + Arryoptions.replace("value='" + val + "' &gt;", ' selected="selected" ' + "value=" + val + "&gt;") + '&lt;/select&gt;';
      }
      return s;
  }
  </code></pre>
  
  <p>Need suggestions to extend JqGrid sorting behaviour to use Selected Text of select control; We have added sort type, still this is not working however sortype func is returning text of dropdown</p>
  
  <pre><code>sorttype: function (cellvalue) { return getTextBasedOnVal(Arryoptions, cellvalue); }
  </code></pre>