The categories direct object and indirect object will only confuse you when it comes to German. Forget about them and think about accusative, dative, genitive objects.
Word order in declarative sentences in German pivots around the fact the conjugated verb always comes second. This becomes clear to English speakers as soon English topicalization is involved:
Im Sommer fahren wir ans Meer.
In summer we go to the seaside.
By this simple example without any object at all, you can already see an important difference between German and English word order. In English, the subject always precedes the conjugated verb, while in German, there is only ever one item in front of the conjugated verb.
German declarative sentences have their topic always in front. And this item may be anything. The subject. An object. An adverbial. A list. A whole clause. Whatever is in front of the conjugated verb is one single item. And the topic. That's the whole idea.