comport (oneself) with (something)
To act in a particular way. You need to comport yourself with class at the gala tonight, so please stay away from the bar.
comport oneself with some manner
to behave in a certain manner. I hope you are able to comport yourself with better behavior next time. The old man was able to comport himself with dignity.