Reset from and size if changing sort