Support sorting by multiple fields.