updated sort function in dummy scroller bar to prevent bugs on safari