Demo
Move Selected Items to Top of ListBox using JavaScript