RE: help with sword 18a brushless controller
If the motor is turning in the right direction then the wires are connected properly, there is no wrong way, only the direction of rotation is changed by swapping any 2 of the wires.
As to the problem of too short flying time, you are probably drawing too much current for the pack you are using. For anyone to help you they will need to know the motor you are using, the prop, and the battery (# of cells, Mah rating) Post back with more details.
Pete