Stl sort function

Sir/Ma’am,
when we use compare in sort function , i am confused about when compare function returns true then swap occurs or when it returns false then swapping occurs?