Fix for sorting not working in Chrome