fix sort js