How To Write A Set List

How to write set list for your next gig: what things do you need to consider? What is the best way to order your music? There’s a lot to consider when writing a set list, unfortunately much of this seems to be missing from other videos on the topic.