Clean up sort_selection.js

I must have been looking at the code that shipped in the chrome web store when I wrote this, because you changed the style significantly in git master ;-)

This should bring everything into line nicely.