how to sort a custom column

so i have a custom column that has only an integer value, and im wondering how to make it sortable 🤔

TeamWinsColumn::make('wins')->sortable() // i tried sortable() but as expected, SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wins' in 'order clause'
image.png
Was this page helpful?