Issue #2880239 by acbramley, drunken monkey, borisson_: Fixed logic for multiple sorts on the same field.