Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sorting by scopes #973

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

benlangfeld
Copy link

@benlangfeld benlangfeld commented Oct 23, 2018

For when we want to sort by something complex such as the result of a SQL function.

Credit: This solution was borrowed from this gist.

For when we want to sort by something complex such as the result of a SQL function.
@benlangfeld
Copy link
Author

Please let me know what I can do to help this get into a 2.1.0 release as quickly as possible.

@scarroll32 scarroll32 merged commit 2c16a5a into activerecord-hackery:master Oct 26, 2018
@benlangfeld benlangfeld deleted the sort-by-scopes branch October 26, 2018 17:44
@benlangfeld
Copy link
Author

Awesome, thanks for merging @seanfcarroll ! Any idea when 2.1.0 might be released? Is there anything I can do to help with that?

@scarroll32
Copy link
Member

That's been released now, cheers @benlangfeld

@benlangfeld
Copy link
Author

Excellent! Thank you very much @seanfcarroll

@pnghai
Copy link

pnghai commented Nov 5, 2018

Hi, is there any chance this one can be support on 1.8 branch? As our system still on Rails 4. :(

@simi
Copy link
Contributor

simi commented Jan 31, 2019

We have ported this to 1.8 branch since we're still on Rails 4 also (I hope not for long time). Is there any interest from core team to submit this port as a pull request?

@gregmolnar
Copy link
Member

@simi It would be great. We have a branch for 1.8, just open the PR against that. Thank you!

@simi
Copy link
Contributor

simi commented Feb 23, 2019

@gregmolnar PR submitted. ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants