How to sort result set from getRecords

How to sort result set from getRecords

Hi, 
I want to sort the result by the "Reporting_To". If someone could assist.
-----------------------------------------------------------------------------------------------------------------------------
listVar = list();
//Create map to hold search condition 1 
searchMap1 = Map();
searchMap1.put("searchField","Date_of_the_next_appraisal_auto_field_update_manual_override");
searchMap1.put("searchOperator","Is");
searchMap1.put("searchText","01-Dec-2022");
searchList = List();
searchList.add(searchMap1);
//Create map to hold search condition 2
searchMap2 = Map();
searchMap2.put("searchField","Employeestatus");
searchMap2.put("searchOperator","Is");
searchMap2.put("searchText","Active");
////Create list to hold all the search conditions 
searchList = List();
searchList.add(searchMap1);
searchList.add(searchMap2);
// Execute the get records task to fetch the search result 
response = zoho.people.getRecords("P_Employee",0,200,searchList);
//info response;
for each  RecordList in response
{
      EeID = RecordList.get("EmployeeID");
      Lname = RecordList.get("LastName");
      Fname = RecordList.get("FirstName");
      Reporting1 = RecordList.get("Reporting_To");
      info EeID + " " + Lname + " " + Fname + " - " + Reporting1;
      InfoEe = EeID.concat(" ").concat(Lname).concat(" ").concat(Fname);
      listVar.add(InfoEe);
}
--------------------------------------------------------------------------------------------------------
Thanks
    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

                        • Word of the Day

                          Word of the Day


                        • 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

                        • Word of the Day

                          Word of the Day



                          Zoho Writer Writer

                          Get Started. Write Away!

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

                            Zoho CRM コンテンツ




                              ご検討中の方