private void sortFields()
   {
      // Method Instances
      DiagramFieldPanel fieldPanel;
      
      if(isSort())
      {
         for(int i = 0; i < fieldsPanel.getComponentCount()-1; i++)
         {
            String master = ((DiagramFieldPanel) fieldsPanel.getComponent(i)).getName();
            
            for(int j = i + 1; j < fieldsPanel.getComponentCount(); j++)
            {
               String slave = ((DiagramFieldPanel) fieldsPanel.getComponent(j)).getName();
               
               if(master.compareTo(slave) > 0)
               {
                  fieldPanel = (DiagramFieldPanel) fieldsPanel.getComponent(j);
                  fieldsPanel.remove(fieldPanel);
                  fieldsPanel.add(fieldPanel, i);
                     
                  master = slave;
               }
            }
         }
      }
      else
      {
         for(int i = 0; i < fieldsPanel.getComponentCount() - 1; i++)
         {
            int master = ((DiagramFieldPanel) fieldsPanel.getComponent(i)).getFieldPosition();
            
            for(int j = i + 1; j < fieldsPanel.getComponentCount(); j++)
            {
               int slave = ((DiagramFieldPanel) fieldsPanel.getComponent(j)).getFieldPosition();
               
               if(master > slave)
               {
                  fieldPanel = (DiagramFieldPanel) fieldsPanel.getComponent(j);
                  fieldsPanel.remove(fieldPanel);
                  fieldsPanel.add(fieldPanel, i);
                     
                  master = slave;
               }
            }
         }
      }
      
      queryBuilderPane.sqlDiagramViewPanel.repaint();
      queryBuilderPane.sqlDiagramViewPanel.validate();
      queryBuilderPane.sqlDiagramViewPanel.doResize();
   }