In a tart manner; sourly or bitterly.
From tart + -ly.
Practice speaking and memorizing "tartly" and many other words and sentences in English.