add a sort condition