Sort a list of key-values elements

Sort a list of key-values elements

Dear community,


I have the following question.

I have list called list_values:

  1. list_values = {{"name":'Carl',"age":6},{"name":'Adam',"age":8},{"name":'Bob',"age":9}};

I want to reorder the list values based on the name key of each key-value element, the output should be like this:
I will reorder alphabetically based on the "name":
  1. list_values_ordered = {{"name":'Adam',"age":8},{"name":'Bob',"age":9},{"name":'Carl',"age":6}};

Does someone know how can I get this done?

Thank you very much.

Kind regards,
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方