{"id":911,"date":"2018-01-02T17:31:47","date_gmt":"2018-01-02T17:31:47","guid":{"rendered":"http:\/\/kb.powercode.com\/?post_type=ht_kb&#038;p=911"},"modified":"2018-01-02T17:31:47","modified_gmt":"2018-01-02T17:31:47","slug":"query-sorting","status":"publish","type":"ht_kb","link":"https:\/\/kb.powercode.com\/?ht_kb=query-sorting","title":{"rendered":"Query Sorting"},"content":{"rendered":"<p>The text fields at the top of a query allow filtering the below results. The filter function priority breakdown below allows creation of more complicated filters and troubleshooting when a filter does not behave as expected. The filter order of how searches are checked in the following order; so an exact match will override &#8220;range&#8221; searches<\/p>\n<h3>1. Logical &#8220;or&#8221; (Vertical bar)<\/h3>\n<pre>| or  OR<\/pre>\n<p>Filter the column for content that matches text from either side of the bar.<\/p>\n<p>example:<\/p>\n<pre>box|bat<\/pre>\n<p>matches a column cell with either &#8220;box&#8221; or &#8220;bat&#8221;<\/p>\n<h3>2. Logical &#8220;and&#8221;<\/h3>\n<pre> &amp;&amp;  or  AND<\/pre>\n<p>Filter the column for content that matches text from either side of the operator.<\/p>\n<pre>box &amp;&amp; bat<\/pre>\n<p>matches a column cell that contains both &#8220;box&#8221; and &#8220;bat&#8221;<\/p>\n<h3>3. Regex<\/h3>\n<pre>\/\\d\/     (or any regex)<\/pre>\n<p>Add any regex to the query to use in the query (&#8220;mig&#8221; flags can be included ie. \/\\w\/mig)<\/p>\n<pre>\/b[aeiou]g\/i<\/pre>\n<p>finds &#8220;bag&#8221;, &#8220;beg&#8221;, &#8220;BIG&#8221;, &#8220;Bug&#8221;, etc<\/p>\n<pre>\/r$\/<\/pre>\n<p>matches text that ends with an &#8220;r&#8221;<\/p>\n<h3>4. Greater than\/Less Than<\/h3>\n<pre>&lt; &lt;= &gt;= &gt;<\/pre>\n<p>Find alphabetical or numerical values less than or greater than or equal to the filtered query<\/p>\n<pre>&gt;= 10<\/pre>\n<p>find values greater than or equal to 10<\/p>\n<h3>5. Not Operator<\/h3>\n<pre>! or !=<\/pre>\n<p>Not operator, or exactly not match. Filter the column with content that does not match the query. Include an equal (=), single (&#8216;) or double quote (&#8220;) to require exact match.<\/p>\n<pre>!fe<\/pre>\n<p>hide rows with &#8220;female&#8221; in that column, but shows rows with &#8220;male&#8221;<\/p>\n<h3>6. Equals Operator<\/h3>\n<pre>\" or =<\/pre>\n<p>To exactly match the search query, add a quote, apostrophe or equal sign to the beginning and\/or end of the query<\/p>\n<pre>abc\" or abc=<\/pre>\n<p>exactly match &#8220;abc&#8221;<\/p>\n<h3>7. Find a range of values.<\/h3>\n<pre>-  or  to<\/pre>\n<p>Make sure there is a space before and after the dash (or the word &#8220;to&#8221;<\/p>\n<pre>10 - 30 or 10 to 30<\/pre>\n<p>match values between 10 and 30<\/p>\n<h3>8. Single Character Wildcard<\/h3>\n<pre>?<\/pre>\n<p>Wildcard for a single, non-space character.<\/p>\n<pre>J?n<\/pre>\n<p>finds &#8220;Jan&#8221; and &#8220;Jun&#8221;, but not &#8220;Joan&#8221;<\/p>\n<h3>9. Wildcard<\/h3>\n<pre>*<\/pre>\n<p>Wildcard for zero or more non-space characters.<\/p>\n<pre>B*k<\/pre>\n<p>matches &#8220;Black&#8221; and &#8220;Book&#8221;<\/p>\n<h3>10. Fuzzy Search<\/h3>\n<pre>~<\/pre>\n<p>Perform a fuzzy search (matches sequential characters) by adding a tilde to the beginning of the query.<\/p>\n<pre>~bee<\/pre>\n<p>matches &#8220;Bruce Lee&#8221; and &#8220;Brenda Dexter&#8221;<\/p>\n<pre>~piano<\/pre>\n<p>matches &#8220;Philip Aaron Wong&#8221;<\/p>\n<h3>11. text<\/h3>\n<p>Any text entered in the filter will match text found within the column<\/p>\n<pre>aaron<\/pre>\n<p>finds &#8220;Aaron&#8221; and &#8220;Philip Aaron Wong&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The text fields at the top of a query allow filtering the below results. The filter function priority breakdown below allows creation of more complicated filters and troubleshooting when a filter does not behave as expected. The filter order of how searches are checked in the following order; so an&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[5],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/911"}],"collection":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=911"}],"version-history":[{"count":1,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/911\/revisions"}],"predecessor-version":[{"id":912,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/911\/revisions\/912"}],"wp:attachment":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=911"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=911"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}