You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had a problem with date sortingfor a while. I have finally figured out what is causing the issue. When your sort_fieldname 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?
The text was updated successfully, but these errors were encountered:
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 yoursort_field
does not exist. eg.sort_field: startDate
bad,sort_field: startdate
good.I believe in
generator/utils.rb
insort_get_post_data
that thekey = 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?The text was updated successfully, but these errors were encountered: