added order clause to permit search