Bookmarklet: sort all drop-down select lists on a page

Some of my co-workers got stuck using a poorly-designed web application that has huge drop-down select lists. Unfortunately the people who designed this web app didn’t forsee the need to actually present the list items in any particular order, so its nearly impossible to find anything.

I made the following bookmarklet to sort all the select lists on the page. It’s probably not much use to anyone else, but at least I got to learn how to make a bookmarklet. Unfortunately it has to work in IE, which has a strict limit on the size of bookmarklets, so I had to keep it very simple.

SortSelect bookmarklet
Bookmark this link then click it on a page that has one or more select elements. The select lists will be sorted alphabetically. Tested in Firefox and IE6.

2 Responses to “Bookmarklet: sort all drop-down select lists on a page”

  1. Madhava Krishna says:

    Hi Patrik,
    I was just browsing for something else and found you and your work on your site. It is really amazing piece of work. In my next project, I am going to ask my team to grab some code form your work and make the payment to see your wishlist come down in number.

    I appreciate your effort for the open source projects.

    Thanks and regards,
    Madhava Krishna
    Assoicate IT Architect,
    Conifer Information Technologies Inc.,
    Pleasanton, CA

  2. Dan says:

    I am working with developers and an early admin interface; and I have to work with a list of 4000 items, not yet sorted. This awesome script is saving me tons of time! thanks.

Leave a Reply