Adds a sort to a list, replacing any existing sort on the same field.
Sort to add.
Current sorts, left untouched.
Maximum number of sorts; 0 (the default) means unlimited. When the limit is reached the sort is not added, unless it replaces one on the same field.
0
the new list of sorts.
Adds a sort to a list, replacing any existing sort on the same field.