<human>: So today, (I'm in high school) my table group was kind of goofing off while the teacher was going around checking homework and we were just laughing yet it wasn't really disturbing the class. The teacher came by and said "sounds like we're off topic here" in kind of a stern way so we all kind of mumbled sorry and went back to work so I look down, look back up at him and he's looking at me and says "i'd expect a 'yes sir i'll get right on it'" so I replied "Yea i'm on it" (tiny bit of sarcasm)

My question is are high school teachers allowed to say that? Like with the whole "sir" thing? I thought no they were not allowed to say that or demand to be referred to as "sir." my teacher never asked to be called that before and he directed it at me when he said that.
Let me know if there is any rule or law talking about that and if you know the answer.

Can you succinctly summarize the text in 1-3 sentences?
<bot>: Teacher asked me to call him sir and I wanna know if they can do that. Highly recommend reading the whole thing though