{"id":47184,"date":"2025-03-04T15:12:31","date_gmt":"2025-03-04T15:12:31","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=47184"},"modified":"2025-07-03T08:16:49","modified_gmt":"2025-07-03T08:16:49","slug":"how-to-use-sorting-filter-with-repeater-field","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/","title":{"rendered":"How to Use Sorting Filter with Repeater Field"},"content":{"rendered":"\n<p>In this tutorial, we will describe how to use the <strong>Sorting Filter <\/strong>to sort the repeater items.&nbsp;<\/p>\n\n\n\n<p>In our example, we will create a \u201cTour Packages\u201d repeater field and will filter the packages by their name, price, and tour duration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-repeater\">Creating Repeater<\/h2>\n\n\n\n<p>First, you need a \u201cRepeater\u201d field created for default or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-custom-post-type-based-on-jetengine-plugin\/\" target=\"_blank\" rel=\"noreferrer noopener\">custom post types<\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Content Types<\/strong><\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-taxonomy-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">taxonomies<\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/relations-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">relations<\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-apply-meta-boxes-to-users\/\" target=\"_blank\" rel=\"noreferrer noopener\">users (in meta boxes)<\/a>, and <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/options-pages-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">options pages<\/a>. It can be crafted with the <em>JetEngine <\/em>and <em>ACF <\/em>plugins.<\/p>\n\n\n\n<p>For our case, we go to the <strong><em>WordPress Dashboard > JetEngine > Post Types <\/em><\/strong>and open a \u201cTours\u201d <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>CPT<\/strong><\/a> to edit it.<\/p>\n\n\n\n<p>We unroll the <strong>Meta fields <\/strong>tab and press the \u201c<strong>New Meta Field<\/strong>\u201d button.<\/p>\n\n\n\n<p>We fill in the <strong>Label <\/strong>and <strong>Name\/ID<\/strong> and pick the \u201cRepeater\u201d <strong>Field type<\/strong>.<\/p>\n\n\n\n<p>By clicking the \u201c<strong>New Repeater Field<\/strong>\u201d button, we add three fields: \u201cPackage Name\u201d with \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#text\" target=\"_blank\" rel=\"noreferrer noopener\">Text<\/a>\u201d type, \u201cPrice\u201d with \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#number\" target=\"_blank\" rel=\"noreferrer noopener\">Number<\/a>\u201d type, and \u201cDuration\u201d with \u201cNumber\u201d type.<\/p>\n\n\n\n<p>Then, we save the settings by pressing the \u201c<strong>Update Post Type<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field.webp\" alt=\"custom post type with repeater meta field\" class=\"wp-image-47185\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"filling-in-the-repeater-fields\">Filling in the Repeater Fields<\/h2>\n\n\n\n<p>Next, we head to the <strong>CPT<\/strong> tab on the <strong>WordPress Dashboard<\/strong> and create a \u201cBali Tour\u201d custom post.<\/p>\n\n\n\n<p>We add four tour packages (repeater items) by filling in the repeater fields and save the post.<\/p>\n\n\n\n<div class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items.webp\" alt=\"repeater field items\" class=\"wp-image-47193\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/repeater-field-items-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-a-listing-with-the-repeater-source\">Creating a Listing with the Repeater Source<\/h2>\n\n\n\n<p>Go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components <\/em><\/strong>and push the \u201c<strong>Add New Item<\/strong>\u201d button.<\/p>\n\n\n\n<p>Choose the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-create-a-listing-template-using-repeater-meta-field\/\" target=\"_blank\" rel=\"noreferrer noopener\">Repeater Field<\/a>\u201d as the <strong>Listing source<\/strong>, pick the post type in the <strong>From post type<\/strong> field, choose the <strong>Repeater source <\/strong>(\u201cJetEngine\u201d in this case and set the field name in the <strong>Repeater field <\/strong>(or <strong>Repeater option <\/strong>if it&#8217;s from the <em>JetEngine<\/em> <strong>Options Page<\/strong>).<\/p>\n\n\n\n<p>Afterward, enter the <strong>Listing item name<\/strong>, select the <strong>Listing view<\/strong> (\u201cBlocks (Gutenberg)\u201d, for example), and hit the \u201c<strong>Create Listing Item<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source.webp\" alt=\"listing item with the repeater source\" class=\"wp-image-47190\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-item-with-the-repeater-source-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, display the values from the repeater fields, using the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a>. Select the \u201cRepeater Field\u201d <strong>SOURCE <\/strong>and enter the field names within the \u201cRepeater\u201d to the <strong>OBJECT FIELD \/ META FIELD \/ REPEATER KEY \/ COMPONENT PROP<\/strong> field.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source.webp\" alt=\"dynamic field with the repeater source\" class=\"wp-image-47186\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/dynamic-field-with-the-repeater-source-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Customize the <strong>Listing template<\/strong> according to your needs and save the settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-a-repeater-query\">Creating a Repeater Query<\/h2>\n\n\n\n<p>Custom query creation is mandatory to filter the repeater items.<\/p>\n\n\n\n<p>Navigate to the <strong><em>WordPress Dashboard > JetEngine > Query Builder <\/em><\/strong>tab and press the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Enter the <strong>Name <\/strong>and choose the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-set-repeater-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Repeater Query<\/a>\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query.webp\" alt=\"jetengine custom repeater query\" class=\"wp-image-47187\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-custom-repeater-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, scroll down and set the query source. In our case, we pick the \u201cJetEngine Meta Field\u201d <strong>Source <\/strong>and select the required <strong>JetEngine Field<\/strong>.<\/p>\n\n\n\n<p>If you want to display repeater items on the Single Post page, leave the <strong>Object ID<\/strong> field empty.&nbsp;<\/p>\n\n\n\n<p>To display repeater items on a static page, enter the post ID in the <strong>Object ID<\/strong> field to pull them from the specified source.<\/p>\n\n\n\n<p>That\u2019s all about the required query settings. Now, you can set additional settings as you wish.<\/p>\n\n\n\n<p>For instance, you can define a custom order for items before applying the sorting filter.<\/p>\n\n\n\n<p>To do this, in the <strong>Order &amp; Order By<\/strong> section, we press the \u201c<strong>Add new sorting parameter<\/strong>\u201d button.<\/p>\n\n\n\n<p>We set the \u201cRepeater Field\u201d option in the <strong>Order By<\/strong> field, enter the \u201cPackage Name\u201d field name in the <strong>Field Name\/ID<\/strong> field, and pick the \u201cAlphabetical (a, b, c)\u201d <strong>Ordering Type <\/strong>and the \u201cFrom highest to lowest values (3, 2, 1; c, b, a)\u201d <strong>Order<\/strong>.<\/p>\n\n\n\n<p>In that way, the repeater items will be ordered in the reverse alphabetical order by the text in the \u201cPackage Name\u201d field (by the titles).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter.webp\" alt=\"jetengine repeater query sorting parameter\" class=\"wp-image-47188\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/jetengine-repeater-query-sorting-parameter-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"placing-the-sorting-filter-and-listing-grid-on-the-single-post-page\">Placing the Sorting Filter and Listing Grid on the Single Post Page<\/h2>\n\n\n\n<p>A custom Single Post page template can be created with the <em>JetThemeCore <\/em>plugin, as described in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/creating-custom-post-type-archive-template-with-jetengine-listing-grid\/#how-to-create-a-single-template-in-the-elementor-editor\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create a Single Template for Custom Post Type<\/strong><\/a> article.<\/p>\n\n\n\n<p>Open a Single Post template in any editor. You can add two columns to the layout.<\/p>\n\n\n\n<p>In the second column, we add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a> and set the just-created <strong>Listing <\/strong>in the <strong>General <\/strong>settings tab.<\/p>\n\n\n\n<p>Then, unroll the <strong>Custom Query <\/strong>tab, activate the <strong>Use Custom Query <\/strong>toggle, and set the just-built <strong>CUSTOM QUERY<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items.webp\" alt=\"listing grid with repeater items\" class=\"wp-image-47189\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/listing-grid-with-repeater-items-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Next, place the <strong>Sorting <\/strong>filter on the page and pick the \u201cListing Grid\u201d option in the <strong>THIS FILTER FOR <\/strong>field in the <strong>General <\/strong>setting tab.<\/p>\n\n\n\n<p>Unfold the <strong>Sorting List<\/strong> tab, where you can set the sorting parameters.<\/p>\n\n\n\n<p>To set the sorting by the \u201cText\u201d field values, select the \u201cMeta key\u201d option in the <strong>ORDER BY <\/strong>dropdown.<\/p>\n\n\n\n<p>For example, we adjust two criteria to sort by title with such settings:<\/p>\n\n\n\n<ul>\n<li><strong>TITLE <\/strong>\u2014 we enter \u201cBy title in alphabetical order\u201d and \u201cBy title in reverse alphabetical order\u201d accordingly;<\/li>\n\n\n\n<li><strong>ORDER BY <\/strong>\u2014 we choose the \u201cMeta key\u201d option;<\/li>\n\n\n\n<li><strong>META KEY <\/strong>\u2014 we enter the name of the \u201cPackage Name\u201d meta field with the \u201cText\u201d type;<\/li>\n\n\n\n<li><strong>ORDER <\/strong>\u2014 we select the \u201cASC\u201d and \u201cDESC\u201d accordingly.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter.webp\" alt=\"meta key sorting parameter\" class=\"wp-image-47192\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-sorting-parameter-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To set the sorting by the \u201cNumber\u201d field values, use the \u201cMeta key numeric\u201d option.<\/p>\n\n\n\n<p>To sort items by the price, we configure such settings as an example:<\/p>\n\n\n\n<ul>\n<li><strong>TITLE <\/strong>\u2014 we enter \u201cBy price from lowest to highest\u201d and \u201cBy price from highest to lowest\u201d accordingly;<\/li>\n\n\n\n<li><strong>ORDER BY <\/strong>\u2014 we choose the \u201cMeta key numeric\u201d option;<\/li>\n\n\n\n<li><strong>META KEY <\/strong>\u2014 we enter the name of the \u201cPrice\u201d meta field with the \u201cNumber\u201d type;<\/li>\n\n\n\n<li><strong>ORDER <\/strong>\u2014 we select the \u201cASC\u201d and \u201cDESC\u201d accordingly.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter.webp\" alt=\"meta key numeric sorting parameter\" class=\"wp-image-47191\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/meta-key-numeric-sorting-parameter-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the same way, we set two criteria to sort by duration.<\/p>\n\n\n\n<p>Finally, we press the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"checking-the-result\">Checking the Result<\/h2>\n\n\n\n<p>Open the post with repeater items on the front end to check how the <strong>Sorting Filter <\/strong>works.<\/p>\n\n\n\n<p>According to the query settings, the items are displayed in the reverse alphabetical order by title.<\/p>\n\n\n\n<div class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"431\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-filter-and-listing-grid-on-the-front-end.webp\" alt=\"sorting filter and listing grid on the front end\" class=\"wp-image-47194\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-filter-and-listing-grid-on-the-front-end.webp 938w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-filter-and-listing-grid-on-the-front-end-300x138.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-filter-and-listing-grid-on-the-front-end-768x353.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-filter-and-listing-grid-on-the-front-end-600x276.webp 600w\" sizes=\"(max-width: 938px) 100vw, 938px\" \/><\/div>\n\n\n\n<p>After we select the \u201cBy title in alphabetical order\u201d, the items are arranged correspondingly.<\/p>\n\n\n\n<div class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"431\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-the-repeater-items-by-title.webp\" alt=\"sorting the repeater items by title\" class=\"wp-image-47195\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-the-repeater-items-by-title.webp 900w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-the-repeater-items-by-title-300x144.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-the-repeater-items-by-title-768x368.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/sorting-the-repeater-items-by-title-600x287.webp 600w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to use the <em>JetSmartFilters <\/em>Sorting Filter with the \u201cRepeater\u201d meta field created with <em>JetEngine <\/em>or <em>ACF <\/em>on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[421,405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-03T08:16:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/\",\"name\":\"How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-03-04T15:12:31+00:00\",\"dateModified\":\"2025-07-03T08:16:49+00:00\",\"description\":\"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use Sorting Filter with Repeater Field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock","description":"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock","og_description":"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/","og_site_name":"Help Center","article_modified_time":"2025-07-03T08:16:49+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/custom-post-type-with-repeater-meta-field.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/","name":"How to Use Sorting Filter with Repeater Field \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-03-04T15:12:31+00:00","dateModified":"2025-07-03T08:16:49+00:00","description":"Learn how to use the JetSmartFilters Sorting Filter with the Repeater meta field created with JetEngine or ACF on your WordPress website.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-sorting-filter-with-repeater-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Use Sorting Filter with Repeater Field"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/47184"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=47184"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=47184"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=47184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}