Sorting on trending items


I need some help figuring out how to sort with trending items. I saw you can generate trending items with Algolia recommend. But is it also possible to sort the index on trending items? So having the items sorted on how trending they are. Or is this something similar to AI-rerank? Any tips and ideas for the best solution for a trending item sort. Can I use algolia recommend for it or do I need to use ai re-rank for trending items sort.

I would really appericiate the help, thanks a lot!