I think this will do what you want
=SUBSTITUTE(SUMPRODUCT(ISNUMBER(FIND(COLUMN(A1:J1),A1))*COLUMN(A1:J1)*(10^(9-COLUMN(A1:J1)))), "0", "")
the formula works on a number with all different digits but what if i had numbers like
0112 This is not a number
1111 Here nothing to move because the number is in format you want
1122 Here nothing to move because the number is in format you want
its dropping some of the digits