Custom sorting implementation. #783
Closed
MrJoy
started this conversation in
Feature requests
Replies: 1 comment 5 replies
-
So that would enable sorting based on computed fields and Would you be open to drafting a PR and championing this idea forward? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if
sort_by
could take a proc/lambda, and when such is provided, use that for applying sorting.My specific use-cases are two-fold:
as: :belongs_to
) I'm showing, and would like to be able to sort by the column that's displayed.So, in this case, I might go from:
To something like:
Beta Was this translation helpful? Give feedback.
All reactions