Ordered structure acquisition by the N- and C-terminal domains of the small proline-rich 3 protein