I've deleted these two lines because they seem redundant. On line 2146 in the original file it checks for sortField, so by definition it should be defined on line 2151. It is then deleted and immediately recreated with the same value that has been checked for on 2146.