adding ou and sort support to z-style searches