fix jQuery sorting