reorder console.logs