# Sort products by Metafield

✨Want to let customers sort your products by values like “Release Date”, “Popularity”, or any other custom field? You can do this using Shopify Metafields and the **Smart Product Filter & Search** app.

Here’s how to enable sorting based on a metafield — and how to remove it from the sorting dropdown later if needed.

***

### 🔹Enable Metafield in the App Settings

1. Open the **Smart Product Filter & Search** app in your Shopify Admin.
2. From the left menu, click **Settings** → go to the **Metafields** tab.
3. Click **Add Field** → Choose **Metafield**.
4. Enter your **metafield namespace** and **key** (e.g., `custom.material`).
5. Under **Applies to**:
   * Ensure to enable the **Sort** option so that customers can sort product data by this metafield.
6. Click **Add**, then **Save** your changes.

<figure><img src="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2FHZYWHCP7EPOpK3dtVwmV%2F2025-04-22_10-55-59.png?alt=media&#x26;token=5a6d35c7-b71c-4b48-8bb1-b674ac308821" alt=""><figcaption></figcaption></figure>

***

### 🔹Remove the Metafield from the Sorting Dropdown

If you no longer want customers to sort products using that metafield:

1. Go back to the **metafield settings** in **Smart Product Filter & Search app**.
2. Uncheck the **“Sort”** option.
3. Save the changes.

By doing that, the sort option will automatically be removed from the app’s sorting dropdown.

***

### 💡 Example

Let’s say you have a metafield called `custom.release_date`. If the **Sort** option is enabled, customers can choose “Sort by Release Date” on the storefront. Disabling that option will hide it from the dropdown.

***

### 💬 Need Help?

Not sure how to define your metafields or can’t find the right setting? Reach out to us at **<contact@globosoftware.net>** — we’re here to assist you.
