Setting the correct order