Hello,
I have a form variable Felder with the content: “Field1, Field2, Field3” etc. For some reason these are sometimes not sorted. The list would then be e.g.: Field2, Field1, Field3
I want to sort them with Listsort:
writeOutput(listsort(Form.Felder, "string"));
But I always get the error message with the error number 500. They need to be sorted for an SQL query.
The sort type should be “text”, not “string”. String is the parameter type allowed, not the actual value to be passed. I am assuming you are getting a 500 error due to the syntax being incorrect.
writeOutput(listsort(Form.Felder, "text"));
2 Likes
writeOutput(listsort(Form.Felder));