Ok, do you mean that Sansa knew that Cersei disliked Margaery or Sansa? Not trying to argue, just genuinely cannot remember!
I guess you mean Sansa, as Margaery was only in KL at the very end.
Arguably Sansa was the enemy and a hostage, so Cersei had no reason to hide her feelings towards Sansa, whereas she had good…