Spotify Playlist reporting to Discord channel message - how to sort the text aggregator alphabetically?

Hi,

I’m a total newbie at this, and think I’ve figured out a lot of it already but one thing I’m struggling with is sorting the text aggregator in a particular order.

I’m trying to set up an automation that tells my discord channel when a new song has been added to a playlist, and I have that working just fine, but it lists the songs in the order they were added to the playlist. Ideally, I want to list the songs by Artist name, alphabetically.

discordbot1


I’ve tried the Array Aggregator, which did give me a few things to sort the information by, but Artist name wasn’t one of them, it seemed quite limited.

discordbot4

Ultimately, it’s not the end of the world if I can’t sort by Artist Name but I’d really like to try to get it working.

Any help would be super appreciated, thank you!

Logan

1 Like

You can use the built-in function split and sort then join

e.g.:

{{ join(sort(split(25.text; newline)); newline) }}

For more information, see

Links

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the Make unofficial Discord server!

1 Like