Sort objects by properties with a chainable API.