Gunakan ruang lingkup dalam template statamic

public function apply($query, $values)
    {
        $query->orderBy('order_me', 'asc');
    }
    
// in template: {{ collection:foo query_scope="order_by_foo" }}
DJ Ultimate Disco Party