<script type="text/javascript">
         jQuery(document).ready(function($) {
-
+            
         function getParameterByName(name, url) {
             if (!url) {
               url = window.location.href;
             }
         }
 
+ 
+
+
+
+
 
 
         $('.glm-member-list-record').each(function(){
             $(this).css("display", "block");
 
         });
-$(window).on("load", function(){
-    
 
         var cat_ids     = [];
         var selected_brands = [];
                        brands.push(item);
                    }
                 });
-         });
-
+            
+            });
 
             $.each(brands, function(index, item){
                 {literal} var option = $('<option>', {value: item.id, text: item.name}); {/literal}
                 $('#brands').append(option);
 
             });
+                
+            $("#brands").html($('#brands option').sort(function(x, y) {
+                  return $(x).text() < $(y).text() ? -1 : 1;
+               }));
 
             $('#brands').prev().prev().remove();
             $('#brands').prev().remove();
 
             if( $('#brands').prev().children('li').length <= 0 ){
                 $("#rvManufacturers").prev().prev().prop('disabled', false);
-            }
+            } 
+            
         });
 
         $('#brands').on("change", function(){
                     $("#rvManufacturers").prev().prev().prop("disabled",false);
                 }
         });
-         console.log($('#rvManufacturers').find(":selected").length);
+       
         if(  $('#rvManufacturers').find(":selected").length > 0 ){
 
             var brand_ids = $('#brands').val();
             $('#brands').prev().prev().remove();
             $('#brands').prev().remove();
         }
+                   
+         $("#brands").html($('#brands option').sort(function(x, y) {
+              return $(x).text() < $(y).text() ? -1 : 1;
+           }));
+
 
     jQuery('select[multiple]').asmSelect();
-        });
+     
 
             // Show search filters box
             {if $settings.list_show_search}