Clean up sort_selection.js
Merge pull request #117 from robru/cleanup_sort_selection

Clean up sort_selection.js