I explained this to you already, The linear arrangement of amino acids.If you have the same arrangement of amino acids in your protein it will fold the same way due to the interactions of the amino acid R groups. ( save misfolding ) This is basic and there is no other answer, though the answer can be given in a more complex and complete way, but you would not understand it unless you had the requisite colleges courses.