In a similar way we can decrease the entropy in one part of our system if there is a compensating increase of entropy in its other part. In other words considering a disorderly motion of molecules we can bring some order in one region, if we do not mind the fact that this will make the motion in other parts still more disorderly. And in many practical cases, as in all kinds of heat engines, we do not mind it.