Fetch all tickets with API

Fetch all tickets with API

I want to get all the tickets from Zoho desk, because the API is limited to 100 tickets on each call, I will fetch the data from script, Is there a way to confirm that I got all the tickets? maybe with ticket number?  

When I try to fetch 100 tickets with 'from=$num&limit=($num+99)' and check the tickets number that returned, I see tickets that the API call does not return.. (e.g #10, #9, #8, #6, #5, #3). 

Is there a way to fetch the tickets in some order? 

Thank you.

      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

                                                      Zoho Show Resources

                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

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