#community-help

Sorting by String Usernames in Typesense

TLDR James asked how to sort by string usernames in Typesense. Jason provided a workaround and promised a built-in solution by late January. Mubashirullah also showed interest in the feature.

Powered by Struct AI

1

1

Dec 08, 2021 (25 months ago)
James
Photo of md5-73a13a5101abfa5eb1a267e7a51e2459
James
05:54 PM
I can see that 'sort_by' cannot be a string. Is there a way round this to sort by a users name for example?
James
Photo of md5-73a13a5101abfa5eb1a267e7a51e2459
James
06:15 PM
Thanks! It would be great to include something like this out of the box.
Specifying a sort_by field on a string within the scehma where you implement this automatically

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:53 PM
Yup yup, we plan to address this shortly, now that v0.22 is out

1

Dec 16, 2021 (25 months ago)
Mubashirullah
Photo of md5-cea7a558edb0c66a1c07dfdcf00bc141
Mubashirullah
01:45 PM
Any rough estimate of when""sort by string"" will be here? Thank you
Dec 17, 2021 (25 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:18 PM
Mid to late Jan is our target