Format into string function has an option to change the order of the Inputs appear in the resulting string by giving “n$” specifier in the format string terminal. ‘ n‘ denotes order of the appearance in the resulting string .See the attached Picture.