fix sorting not working with turbolinks