limit(20)->order("CASE location WHEN '$a' THEN 0 ELSE 1 END,location desc")->select(); $a是你的条件 比如郑州市 会按照你给的条件往前排!