fix sort bug in chrome