Re order pins from last one to first