How to sort repeat table data during Zoho Writer's mail merge?

How to sort repeat table data during Zoho Writer's mail merge?

Organize your repeat table data in a logical order by sorting it based on a specific merge field. For example, let's say you want to sort your employee details by their department. Then, within each department, you may further want to sort the employees by their date of joining to ensure that employees within the same department are ordered by their date of joining. To achieve this, utilize the Sort Repeat Records feature in Zoho Writer.

There are two stages of sorting involved in this process:
  1. Primary Sorting: Start by sorting your repeat table data based on a primary merge field, that is, Department of the employees.
  2. Secondary Sorting: After the primary sorting(Department-wise sorting) is applied, you may find it necessary to refine the order of the data further. (Sort by date of joining) This is where "then sort by" comes into play. You can specify a secondary merge field, that is, Date of joining, to sort the data within each department created by the primary sorting.

 Steps to sort repeat records:

  1. Create a merge template and connect a data source.
  2. Within your template, insert a repeat table containing the necessary fields. Note that you can choose between a simple repeat, row repeat, or any other type of repeat region.
  3. Right-click on the field by which you intend to sort your repeat data. From the drop-down menu, select Sort Repeat Records.



  4. Primary sorting: Next, select the field you wish to sort by. Specify the field type (e.g., text, date, number), and indicate whether you want the data sorted in ascending or descending order.



  5. Secondary sorting: Specify a secondary merge field(date of joining) in Then by to sort the data within each group created by the primary sorting.



  6. Click on Sort to initiate the sorting process. Then, preview your merge to ensure that the data is sorted as desired.

    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION





                          Quick Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          CRM Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and Drop form builder
                          WCAG


                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Repeat Blocks in merge

                                                                                                                Repeat Field is one of the advance merge fields that lets you repeat blocks of information for each record in your data source automatically. The following image shows how a template document as well as the output document will look after using the ...
                                                                                                              • Configure workflow in Zoho Books with Writer's mail merge

                                                                                                                With the Zoho Books and Zoho Writer merge integration, you can easily generate customized documents, like shipping labels or invoices, directly from your Zoho Books data. For instance, if you need to create labels for customer orders that include ...
                                                                                                              • Finish Merge

                                                                                                                Finish Actions Email Notifications You can enable email notifications to get notified when the merge is initiated and completed. You will receive an email as shown below, once the merge is initiated with a link to track the status of the merge ...
                                                                                                              • How to set up mail merge for sending Offer Letters using Zoho Writer?

                                                                                                                Offer Letters can be created and sent out in bulk automatically in minutes. Follow these steps to create a template and send the offer letters in a few clicks using Zoho Writer's mail merge. Here are the steps: Create a blank document in Zoho Writer. ...
                                                                                                              • How to generate labels with Zoho CRM data using mail merge

                                                                                                                Navigate to Settings from CRM Home. Under customization, click Templates. <img> Inside Templates, click Mail Merge. <img> Click New Template. Select a Module. Assign a name to the template and pick a folder for the template to be saved and click ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources