Querying all content entries for a page I'm new to Craft CMS and I'm trying to build a new website using Craft. I want my client to be able to change the order of displaying contents of a page by dragging and rearranging them in the Admin panel. So I created a Section called 'Home Page' with type Single and I created few fields with type Matrix and I updated the Entry Type for section Home Page with those new fields. Home Page appeared in the Entries under Single as expected and I was able to update the contents on the matrix fields as well.
Then I created a twig file and used the content entered via Admin to render the home page. So far so good but my client wants to rearrange the fields (I don't know whether I  can call them fields) in the Home Page via Admin by dragging them around and that should be reflected in the rendered homepage.
I thought of creating a subfolder and separate twig files for rendering the entry types in the home page but what I don't know is how I can query the entry types from the entry object in the order in which it's configured via the Admin panel.
My Home Page in Admin now looks like this
Banner
Why Choose Us
What We do
Our Clients
Testimonials

And my client wants to change this to say
Banner
What We do
Our Clients
Why Choose Us
Testimonials

Once they change this, it should be reflected in the rendered home page. Is this possible in Craft?
I think you might be going about this the wrong way. Personally, I'd create a single Matrix or Super Table field and attach that to your home page single. This is far easier for your editors to maintain and doesn't require the entry type's field layout every time you want to rearrange content.
However, to answer your question:
What you're looking for is the field layout definition for your entry type (which is effectively what you're looking at in the screen capture you've provided) and iterate over the fields ($entry-&gt;fieldLayout-&gt;fields) as necessary, either using a switch statement using the field name for conditional processing or by pulling in an include based on the field's name.
If you decide that the latter is really what you want to do, I'll help with some suggested logic but I'd encourage you to look at the first option before digging into the Craft class reference!