Sort by all passed fields.

Iterate through all the passed sort fields until the tie is broken.