#community-help

Sorting Strings in Typesense

TLDR Darren receives guidance on sorting strings in Typesense from hi019 and Jason, who offered to upgrade his cloud cluster to an RC build with the string sort feature.

Powered by Struct AI
14
25mo
Solved
Join the chat
Dec 26, 2021 (25 months ago)
Darren
Photo of md5-fa83de4db3e1444aecaf7a587e35eb16
Darren
11:01 PM
Folks, new to Typsense, working on a prototype ... looks great so far. Just one issue - sorting by strings. (!) I see from the docs that the sort_by param is only for numeric values. So if I want to sort by name (string), I guess I would need some way to covert to a number and sort ... is there a convention on how to do this? Or am I missing something? How are you guys sorting alphabetically?
hi019
Photo of md5-0062cb4a6efd095bd211d89ac3e5281f
hi019
11:45 PM
There’s a preview build available for string sorting https://github.com/typesense/typesense/issues/117#issuecomment-1000857228
Darren
Photo of md5-fa83de4db3e1444aecaf7a587e35eb16
Darren
11:49 PM
Ok, this is really great. I just need to sort by 'name' - which is usually very short strings.
Since I'm not running local (typesense cloud), any eta on when 0.23 will hit production?
hi019
Photo of md5-0062cb4a6efd095bd211d89ac3e5281f
hi019
11:55 PM
No idea — I’m just a contributor to Typesense. Jason will be able to give you a better answer. But I’ve seen them manually update Cloud clusters to Preview, maybe request that
Darren
Photo of md5-fa83de4db3e1444aecaf7a587e35eb16
Darren
11:58 PM
Ok much appreciated hi019
hi019
Photo of md5-0062cb4a6efd095bd211d89ac3e5281f
hi019
11:58 PM
Pretty sure if you say Algolia 3 times they will magically appear. Or maybe that only works on Hacker News 😁
Darren
Photo of md5-fa83de4db3e1444aecaf7a587e35eb16
Darren
11:58 PM
lol!
11:58
Darren
11:58 PM
New here ... but I guess that's just how it is huh 😉
hi019
Photo of md5-0062cb4a6efd095bd211d89ac3e5281f
hi019
11:59 PM
Nah just kidding, they’re very helpful here and usually respond promptly
Dec 27, 2021 (25 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:26 AM
Lol 😂
12:28
Jason
12:28 AM
Darren happy to upgrade your Typesense Cloud cluster to the RC build with this feature. Could you email [email protected] with your cluster ID?
12:30
Jason
12:30 AM
We typically encourage folks to run RC builds ahead of the GA release. GA usually happens when we’ve accumulated enough features / fixes to warrant a GA
Darren
Photo of md5-fa83de4db3e1444aecaf7a587e35eb16
Darren
01:04 AM
Jason If you can surgically do that, I'm great for testing, I'm in prototype mode so it's non-critical. Sending cluster .... done!
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:36 AM
Darren - we've upgraded your cluster to the latest RC build with the sort_by string feature