Reorder else-if-statement