Word order in a sentence with 跟 and 在 I am not sure if I should put 跟 before 在 or the other way round. For example:  

我跟朋友（一起）在饭馆吃饭
or
我在饭馆跟朋友（一起）吃饭

Can I use both, but the meaning is slightly different?
跟:with (who)

跟朋友 with friends 

跟家人 with family

在 : in (where)

在饭馆 in the restaurant

The order of 跟朋友 and 在飯館 is not important in Chinese.