> For the complete documentation index, see [llms.txt](https://boredprogrammers.gitbook.io/laragrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boredprogrammers.gitbook.io/laragrid/filter/show-filtering-and-sorting-in-url.md).

# Show filtering and sorting in url

If you want to show filtering and sorting in url, you need to rewrite default LaraGrid properties. You can do it like this:

```php
abstract class MyBaseGrid extends BaseLaraGrid
{

    #[Url]  // we added this line
    public array $filter = [];

    #[Url(except: 'id')] // we added this line
    public string $sortColumn = 'id';

    #[Url]  // we added this line
    public string $sortDirection = 'desc';

    protected function getFilterResetButton(): FilterResetButton
    {
        return FilterResetButton::make();
    }

    protected function getTheme(): BaseLaraGridTheme
    {
        return MyTheme::make();
    }

}
```

Those Url params are default from livewire, so you can customize them as you want by following [livewire docs](https://livewire.laravel.com/docs/url#initializing-properties-from-the-url).
