The only reason you couldn't book the earlier train with the longer connection was that the system found the faster connection and didn't show the other one. You need to change connection time in the settings to more than whatever the short connection is. In your case, specifying a minimum 15 min connection would show the earlier train.