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

sort_field name with capitalization problem #239

Open
arghc opened this issue Aug 29, 2022 · 0 comments
Open

sort_field name with capitalization problem #239

arghc opened this issue Aug 29, 2022 · 0 comments

Comments

@arghc
Copy link

arghc commented Aug 29, 2022

I have had a problem with date sorting for a while. I have finally figured out what is causing the issue. When your sort_field name is CamelText (or has any capitalization?), the result is exactly the same as if your sort_field does not exist. eg. sort_field: startDate bad, sort_field: startdate good.

I believe in generator/utils.rb in sort_get_post_data that the key = r_key.downcase.strip # Remove any erronious whitespace and convert to lower case line is the culprit. No idea, what else might be relying on that, so hopefully it will be an easy patch for someone with experience to make?

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

No branches or pull requests

1 participant