Adds sorting capabilities for all fields.