Hey guys, getting an error. I have a field, random...
# community-help
a
Hey guys, getting an error. I have a field, randomInt, that im trying to sort by. Im using
Copy code
'sort_by': 'randomInt:asc',
But its spitting out the error
Copy code
"Could not find a field named `randomInt` in the schema for sorting."
Any idea whats going on with this? Im on flutter if that makes any difference.
k
When you created the collection, did you add
randomInt
to the schema?
a
Looks like that did it, thanks!