How do I sort a single numerical column? #1074
Replies: 3 comments 3 replies
-
Could you please provide the code? |
Beta Was this translation helpful? Give feedback.
-
Sure! I'm having problems with the code formatting in this rich editor though so I hope this is legible. public function addColumns(): PowerGridEloquent public function columns(): array |
Beta Was this translation helpful? Give feedback.
-
After much consternation, this ended up being an error on our end. The column was a VARCHAR instead of a MEDIUMINT. We fixed that and sorting worked no problem. Thanks for the super-quick response!! |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I've seen the documentation (https://v3.livewire-powergrid.com/table/component-settings.html#sort-string-as-number) but that sets a property at the table level. (And it still didn't work for me.) Using ->sortable() on the column performs an alphabetical sort. Is there a way to force a numerical sort?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions