title: Prestashop custom admin module draggable sort/order not working
body: <p>I'm building a very simple module for Prestashop 1.6 and I added an admin interface that allows to list my records, a form to add and edit and delete.</p>
  
  <p>This is working fine as you can see here:
  <img src="https://i.stack.imgur.com/eQMdq.jpg" alt="enter image description here"></p>
  
  <p>The problem is that draggable reorder button is not draggable. Hence the reordering is not working...</p>
  
  <p>According to the <a href="http://doc.prestashop.com/display/PS16/Using+the+HelperList+class" rel="nofollow noreferrer">official docs</a>, if you set the position option in your controller, you get the draggable functionality:</p>
  
  <pre><code>['position'] =&gt; 'position', // If set to position, the field will display arrows and be drag and droppable, which will update position in db (optional).
  </code></pre>
  
  <p>This is the relevant part of my module controller:</p>
  
  <pre><code>$this-&gt;fields_list = array(
          'id_quicklinks' =&gt; array(
              'title' =&gt; $this-&gt;l('ID'),
              'align' =&gt; 'center',
              'width' =&gt; 25
          ),
          'titulo' =&gt; array(
              'title' =&gt; $this-&gt;l('Titulo'),
              'width' =&gt; 'auto'
          )
          , 'lead' =&gt; array(
              'title' =&gt; $this-&gt;l('Subtitulo'),
              'width' =&gt; 'auto'
          ), 
          'position' =&gt; array(
              'title' =&gt; $this-&gt;l('Ordem'),
              'filter_key' =&gt; 'a!position',
              'position' =&gt; 'position',
              'align' =&gt; 'center',
              'class' =&gt; 'fixed-width-md'
          ),
          'active' =&gt; array(
              'title' =&gt; $this-&gt;l('Publicado'),
              'width' =&gt; '25',
              'active' =&gt; 'status'
          )
      );
  </code></pre>
  
  <p>As you can see in the print screen, is shows the handles but the drag-an-drop doesn't work. No javascript errors on the console, no nothing... And I can see in the source code that jQuery and jQueryUI are loaded. Other admin pages with reorder feature are working fine...</p>
  
  <p>Any ideas?
  Thanks.</p>