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

form:submissions sort is case-sensitive #2316

Closed
BriceG-D opened this issue Jan 2, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@BriceG-D
Copy link

commented Jan 2, 2019

{{ form:submissions in="anmeldung" as='entry' }}
{{ entry sort="company-name:asc|company-location:asc"}}
{{ company-name }}
{{ /entry }}
{{ /form:submissions }}

the strings are sorted but case-sensitive which is wrong imo

Environment details (please complete the following information):

  • Statamic 2.11.2
@jasonvarga

This comment has been minimized.

Copy link
Member

commented Apr 26, 2019

Instead of sorting the entry array, sort on the tag itself.

The submission tag supports the mult-var pipe syntax, the one used on standard variables does not.

{{ form:submissions in="anmeldung" as='entry' sort="company-name:asc|company-location:asc" }}
  {{ entry }}
    {{ company-name }}
  {{ /entry }}
{{ /form:submissions }}

However there's an error that will occur when you do that, which is fixed for 2.11.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.