Sort a list of priorities from A to Z and you get High, Low, Medium, Urgent. Every word is right and the order is wrong. Some categories carry an order of their own, and a chart has to keep it.

Two kinds of category

A category names a group. Some groups have no order at all:

  • Unordered: departments, teams, colors, countries, product names. Sales doesn't come before Support in any sense, so any order works, and sorting by size or by name are both fine.

Others have one:

  • Ordered: a priority (Low, Medium, High, Urgent), a survey answer (Strongly disagree to Strongly agree), a size (Small, Medium, Large), a membership level (Bronze, Silver, Gold), a stage in a process. The order is part of what the value means.

An ordered category is still a category. You can count its rows and group by it, but you can't add its values up.

What the order changes on a chart

  • The axis. Bars, boxes and columns go in the category's own order, not by name and usually not by size. A reader scans from Low to Urgent and expects the step from one to the next.
  • The color. Unordered groups get colors that are clearly different from each other. Ordered groups read better as one color running from light to dark, so the darkest is the "most".
  • The comparison. Neighbors can be compared, and merged: High and Urgent together is a sensible group, while High and Low together usually isn't.

A worked example

A city's service complaints, 2,800 of them, each with a priority:

Priority Complaints
Low 1,229
Medium 998
High 440
Urgent 133

Here's the cost of resolving them, by priority. The boxes run Low, Medium, High, Urgent: the priority's own order, not the alphabet's and not the count's.

A box plot of the "City 311 Service Complaints" dataset: the spread of Sum of Cost for each of 4 Priority groups. Open at full size
A box plot of the "City 311 Service Complaints" dataset: the spread of Sum of Cost for each of 4 Priority groups.

How to read this Box plot Try it in the explorer

Read in that order, the chart answers a real question: does a more urgent complaint cost more? The middle line of each box barely moves, so here it doesn't. Sorted from A to Z, the same boxes would ask nothing.

What the order doesn't promise

An order says which comes first. It doesn't say how far apart the levels are. The step from Low to Medium needn't be the same size as the step from High to Urgent.

That's why turning the levels into 1, 2, 3, 4 and averaging them is risky. An average priority of 2.3 assumes equal steps, and the data never said so. Counting each level, or the share of rows at each level, is always safe.

How the tool finds the order

Before anything is sent, the engine reads a category's values in your browser and checks them against scales it knows: agreement, satisfaction, frequency, priority and severity, sizes, levels like Bronze to Gold, and others. When the values match one, the chart gets the order. Only the scale's own words go with it, which are the same in every table that uses them.

When your order is your own (stage names, internal tiers, fiscal periods), tell the tool:

  • In Power BI, add a column holding each value's position (1, 2, 3...) and use Sort by column on the category.
  • In Excel, add the order as a custom list, or keep a number column beside the labels and sort by it.

Try it

Find the categories in one of your tables and mark each as ordered or unordered. For each ordered one, check a chart that uses it: does it run in the right order, or from A to Z? If it's the alphabet, add a sort column.

The next lesson looks at numbers the same way: some move smoothly, and some only come in steps.