5

When I search, I want the sites to be alphabetical:

enter image description here

Please can they be?

1 Answer 1

4

If this doesn't happen, this simple script will do it for you!:

$('.site-picker.ui-autocomplete-input').on('input', function() {
    setTimeout(function() {
        var mylist = $('body > ul.ui-autocomplete');
        var listitems = mylist.children('li').get();
        listitems.sort(function(a, b) {
            return $(a).text().toUpperCase().localeCompare($(b).text().toUpperCase());
        })
        $.each(listitems, function(idx, itm) { mylist.append(itm); });
    }, 500);
});

The main sorting part's code is from https://stackoverflow.com/a/1134983/3541881! Please +1 his answer!

As a userscript over here.

enter image description here

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.