#community-help

Default Sorting Fields in Strings

TLDR Sruli inquired if a string could be a default sorting field. Jason clarified that only numeric fields are allowed, but a sort_by=string_field:asc can be sent with every request.

Powered by Struct AI
3
9mo
Solved
Join the chat
Dec 27, 2022 (9 months ago)
Sruli
Photo of md5-8c57c435e01337c18bf32b8f7749cabf
Sruli
10:52 PM
Can a string be a Default sorting field?
Dec 28, 2022 (9 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:09 PM
No, only numeric fields are allowed in default sorting field. But you can still send a sort_by=string_field:asc with every request
Jan 03, 2023 (9 months ago)
Sruli
Photo of md5-8c57c435e01337c18bf32b8f7749cabf
Sruli
09:09 PM
Thanks!