How do we sort by distance in FIlament? #139
Unanswered
RyanPaiva56
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry, i just tested the orderBy but that does not seem to cause any problems and works on my end. I never used Filament so i cannot test this atm. Remember that ST functions should only be used within query builder functions like select, where or orderby etc. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks thanks for an awesome package! It's been working great except for one issue, which is that I can't sort by distance in Filament. I get an error saying the column doesn't exist, which makes sense because it doesn't. So, filament has a way to do a custom sort instead of just by the column, which looks like this:
This looks like it should work, except I'm getting this error:
I feel like this isn't a bug, and that I'm doing something wrong with it. Any advice would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions