πŸŽ“ Sort a Dictionary

by Patrick Corgan

Version 2 (October 3, 2023)

Download (435 downloads)

This flow sorts a dictionary by either keys or values. Just replace 'sortMe' with the dictionary you want to sort, and use either the key-sorting blocks or the value-sorting blocks. Replace 'sorted' with the name you want to use for your sorted dictionary. Don't use the same name for the unsorted and sorted dictionaries.

Ricardo FernΓ‘ndez Serrata has an updated and improved version:
https://llamalab.com/automate/community/flows/39658

------------------------------
π˜‰π˜Ί π˜—π˜’π˜΅π˜³π˜ͺ𝘀𝘬 𝘊𝘰𝘳𝘨𝘒𝘯
πŸ› οΈπ•”π• π•žπ•žπ•–π•Ÿπ•₯𝕀 π•’π•Ÿπ•• π•”π•£π•šπ•₯π•šπ•”π•šπ•€π•žπ•€ π•¨π•–π•π•”π• π•žπ•–βš’οΈ
------------------------------

Version 2: Big bug fix. Value sorting algorithm now works as expected with dictionaries that have duplicate values.

4.8 average rating from 6 reviews

5 stars
5
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.