Fetching records with multiple sort criteria

Fetching records with multiple sort criteria

Wondering if anyone has had success running through a for each collection with multiple sorting instructions....


In a view's script you have....

  sort by
        rep_name_grid   ascending
        Talked_to_this_rep   descending

In a collection it looks like this.....

for each r in Form_Name  [group == group_var] sort by  rep_name_grid  range from startval to (endval  -  1)

However, in collecting records you set asc and desc in the scriptbuilder :)

I tried to make the syntax work (tried "sort by rep_name_grid Talked_to_this_rep desc" and "sort by rep_name_grid && Talked_to_this_rep desc") and neither worked :(

So I know I could probably do a list add with my first sort and then resort with the second requirement but that would just be really hard to collect multiple vars.

Ok, let me know! :)

    Zoho Marketing Automation
            • Sticky Posts

            • Zoho Creator Developer's Conference 2017 !!!

              We welcome all our Creator Developers! You're invited to join us for our annual Zoholics Developers conference August 29th–31st! This is your chance to get training and guidance on Zoho Creator from our most knowledgeable custom app builders.       Zoholics Developers is a three-day event where you'll participate in interactive workshops to hone your app-building skills, get questions answered by Creator experts with personal one-on-one sessions, and connect with other Creator developers from around
            • Share your success story

              We would like to hear from our passionate users how much Zoho Creator has changed the way you work and benefited you. If you would like to share your story to us and be featured as a proud user of Zoho Creator, then this is for you. Fill up the form below and if you want to be included in a case study, we will get in touch with you to get further details. So what are you waiting for? Tell us your story. Charles

            Zoho Pagesense Resources

              Zoho SalesIQ Resources

                    Zoho TeamInbox Resources

                      Zoho DataPrep Resources

                        Zoho CRM Plus Resources

                          Zoho Books Resources

                            Zoho Subscriptions Resources

                              Zoho Desk Resources

                                Zoho Projects Resources

                                  Zoho Sprints Resources

                                    Qntrl Resources

                                      Zoho Creator Resources

                                        Zoho WorkDrive Resources

                                            Zoho Campaigns Resources

                                              Zoho CRM Resources

                                                      Design. Discuss. Deliver.

                                                      Create visually engaging stories with Zoho Show.

                                                      Get Started Now