Skip to content
TriedPrompts

More in Spreadsheets & money data.

Sort a Google Sheet in a custom priority order with Claude in Chrome

Asked to sort a Google Sheet in a custom priority order, Claude in Chrome kept sorting it alphabetically instead, so it failed.

Result: FailureTool: Claude in ChromeLevel: AdvancedEvidence: Shown

Copy the prompt

Shown: The post shows a log of the steps the browser assistant took while sorting the sheet. Rated , after reopening the source. Rates the evidence, not the result. Failed and partial cases are rated the same way. How we rate evidence

Outcome

Asked to sort a Google Sheet in a custom order (critical, high, medium, low), Claude for Chrome kept trying to sort it alphabetically instead, per the poster's screenshot.

FailurePosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Replace anything in [CAPITAL LETTERS IN BRACKETS] with your own details.
  5. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Improved prompt

Our fuller version of the source's prompt, with fill-in details and rules, or one written to avoid what went wrong. Not tested by the poster.

What the prompt labels mean

Our fuller version of the person's prompt. They didn't use this version, and we haven't tested it.

Run this task now, exactly as written below. Everything you need is here, so start straight away and only stop if something required is missing.

Goal: Sort my sheet by priority in the order I choose, not A–Z.

Fill in before running: Which sheet and column, and what's the exact order?

What I'll give you:
- The sheet link and column ([COLUMN])
- The exact priority order, written out (e.g., critical → high → medium → low)

Rules:
- Don't use a plain A–Z sort. Add a helper column that gives each priority a number in my order (e.g., critical=1, high=2, medium=3, low=4) and sort by that.
- Don't change any other data. Hide or delete the helper column only if I agree.
- If a value doesn't match my priority levels, leave that row at the bottom and tell me.
- After sorting, check the first and last 5 rows, show them to me, and say if anything landed out of order.

Output: The sorted sheet and a quick before/after check.

You'll know it worked when: all critical rows come first and low rows last.

Try this in:

This prompt has blanks to fill in, like [COLUMN]. We'll copy it instead of filling it in, so you can edit it before you send.

The source used Claude in Chrome, which can take actions in a browser or app. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

The prompt they actually used (our rebuild)

The source didn't share its exact prompt, so we wrote this from what it describes.

Sort this sheet in a custom order: critical -> high -> medium -> low.
Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Run this task now, exactly as written below. Everything you need is here, so start straight away and only stop if something required is missing.

Goal: Sort my sheet by priority in my custom order, not alphabetically.

Inputs (fill in or confirm):
- Sheet link and column
- Exact order (e.g., Critical > High > Medium > Low)
- Header row number

Rules:
- Add a helper column that maps each priority to a number (Critical=1, High=2…), using a formula.
- Sort the whole data range by the helper column ascending, keeping rows together.
- Check for values not in the order list and list them.
- Ask before deleting the helper column; hiding it is fine.
- Copy the sheet first.
- Check rows still line up.
- Use a helper column with the priority rank, then sort by it; remove the helper column only if I agree.
- Keep any filters and formatting as they were.
- Report row counts before and after.

What went wrong before, and how to avoid it:
- Last time it kept sorting alphabetically: never sort by the text column itself; always sort by the numeric helper column.

Checkpoint: Make a copy of the tab before sorting.

If you get stuck: If the sort comes out A–Z again, stop and show me the helper values. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Check the first and last 5 rows follow the custom order.

Output: Sorted sheet and a note on the helper column.

Done when: rows run in my custom order from top to bottom.

AI tool

Claude in Chrome

Known limitations

FailureThe source says the AI did not get the job done.

What went wrong: Repeatedly sorted alphabetically instead of in the custom order.

What to try next: The source does not say what to try next.

Source

Posted
by @AaronBergman18
Last checked
Method:
How we verify

https://x.com/AaronBergman18/status/1983740965660844115

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Spreadsheets & money data

More in DataRandom case in Data