Map fields for retrieve fields and sort