correcting method of selecting current sort order

used currentOrder rather than selectedIndex