Following hastag helps a bit.. primal client use some also for trending users or note. Otherwise check on nostrband, also there I think there is an algo for trending topics and nostriches