Add support for array of objects sorting based on properties