> ## Content Index
> Fetch the complete content index at: https://www.vizney.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Specify Sort Order of Items in Tableau Quick Filters
- URL: https://www.vizney.com/tableau-quick-filter-custom-sorting/
- Published: 2024-08-14T03:00:51.000Z
- Updated: 2024-09-26T01:17:22.000Z
- Description: Here’s a way to apply a custom sorting logic to a quick filter, beyond the default options of data source order, alphabetical order, and manual sorting.
- Author: Yehwan Hwang
- Tags: Tips & Tricks

When you list the three models of the Galaxy S series—Standard, Plus, and Ultra—they will typically appear as shown on the left, regardless of whether you sort by data source order or alphabetically. If you want to set a custom order for the models (e.g., Standard, Plus, Ultra), the two most common methods are:

- **Manually sorting** each item and making adjustments whenever new data is added.
- Adding a number **prefix** to each model to define the order.  
(e.g., 1\. Galaxy S20, 2\. Galaxy S20+, 3\. Galaxy S20 Ultra)

Aside from these methods, you can also **use specific ASCII codes that appear as blank spaces** to create a custom sort order logically.

ASCII includes various special characters, and here are the space characters ranked by their ASCII code numbers. If you need fewer than nine sorting levels, you can conveniently use sequential codes from 65520 to 65528.

![](https://storage.ghost.io/c/6a/50/6a50f03c-1922-4e90-bf18-c5abd0f819d4/content/images/2024/09/---ASCII---.png)

Here’s how you can use the CHAR function and the ASCII codes mentioned earlier to sort the Galaxy S series:

![](https://storage.ghost.io/c/6a/50/6a50f03c-1922-4e90-bf18-c5abd0f819d4/content/images/2024/09/Custom-Sorting.png)

- Standard: 65520
- Plus: 65521
- Ultra: 65522

In the end, you’ll see the sorting looks like this.

![](https://storage.ghost.io/c/6a/50/6a50f03c-1922-4e90-bf18-c5abd0f819d4/content/images/2024/09/Sorting-Quick-Filter-2.png)

💡

This guide is based on tests run in a ****Windows** environment using ****Tableau version 2024.1.**

For more details, you can download and review the Tableau file below.

[How to Specify Sort Order of Items in Tableau Quick FiltersHow to Specify Sort Order of Items in Tableau Quick Filters.twbx26 KBdownload-circle](https://www.vizney.com/content/files/2024/09/How-to-Specify-Sort-Order-of-Items-in-Tableau-Quick-Filters.twbx "Download")