-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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 filter and grouping support #1735
Comments
Since |
This is a great idea! Would you filter only by category, or by anything in |
In my head, I was thinking it was similar to ruby's |
@benbalter Hm, I think @haacked's idea of "group_by" would make more sense in this case, as it'd group by a key. Otherwise, we'd have to know both the key and the value. Syntax is doable, but would have to be like
|
Ideally anything in Also, I don't think |
Someone on the twitters asked about sorting. I added it here, but should I create a new issue? Thoughts? |
Please create a new issue :) |
I had a case where I wanted to group a bunch of pages by a property. Here's a naive example of the type of code I would want to write:
This could be a better way to handle grouping blog posts by dates too.
The text was updated successfully, but these errors were encountered: