The ‘跟gēn Y phrase’ in similarity expressions is located in the same alternative positions as 比bǐ Y in verb–complement and verb–object–verb–complement sentences:
Tā zhǎng dé gēn tā mǔ qīn yī yàng piāo liàng 。
Tā gēn tā mǔ qīn zhǎng dé yī yàng piāo liàng 。
She looks as pretty as her mother.
Wǒ pǎo dé gēn tā yī yàng kuài 。
Wǒ gēn tā pǎo dé yī yàng kuài 。
I run/ran as fast as he does/did.
Nǐ nà tiān chī fàn chī dé gēn tā yī yàng duō 。
Nǐ nà tiān chī fàn gēn tā chī dé yī yàng duō 。
You ate as much as she did that day.
Nǐ xiě hàn zì xiě dé gēn tā yī yàng hǎo 。
Nǐ xiě hàn zì gēn tā xiě dé yī yàng hǎo 。
You write Chinese characters as well as he does.
 Yip, P. C., Rimmington, D., Xiaoming, Z., & Henson, R. (2009). Basic Chinese: a grammar and workbook. Taylor & Francis.