public function transform(array $fields) { usort($fields, function ($a, $b) { return $a->get('field_order') > $b->get('field_order'); }); return parent::transform($fields); }
public function __construct($channel_id, $entry_id) { $this->channel_id = $channel_id; $this->entry_id = $entry_id; parent::__construct(); }