posts – How to add a sorting dropdown to archive pages?


I’m using Twenty Sixteen theme with a custom template for archive pages. What I’m trying to do is to add a sorting dropdown in those pages, like in the attached image.

My code skills are very basic, so, is there an easy way to do it?

Any help would be really appreciated. Thanks!

enter image description here