Skip to content
UniKit

Name sorter by pinyin, initial or strokes

Sort name lists by toneless pinyin, surname initial or surname stroke count. Stroke mode uses a real built-in stroke table and marks characters it does not cover instead of guessing.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Name list

One name per line; English and Chinese commas plus the enumeration comma are accepted. Pinyin comes from pinyin-pro; stroke mode only covers the built-in 1–6 stroke characters.

Sorted names

Stroke mode annotates each surname with its stroke count; characters missing from the table are marked "not collected" and sort last.

丁一
李雷
李四
王五
张三

5 names · mode pinyin · order asc · removed 0 duplicates · 0 not collected · table covers 524 characters (1–6 strokes)

What this tool does

  • Sort class, meeting or event lists by pinyin or surname initial for roll calls
  • Sort by surname stroke count; only the built-in 1–6 stroke table is used and uncovered characters are labelled instead of guessed

Example

Input

张三
李四
王五

Output

李四
王五
张三

Real output of the default pinyin mode: li si → wang wu → zhang san.

Frequently asked questions

Where does the pinyin come from, and how are polyphonic characters handled?

Readings come from the bundled pinyin-pro dictionary as toneless full pinyin; polyphonic characters such as 单, 查 or 仇 used as surnames follow that library’s default reading and cannot be overridden. Initial mode uses the initial of the surname’s first character and falls back to full pinyin, so 李四 and 李雷 stay in a sensible order.

What is the data source for stroke sorting, and how many characters does it cover?

It is the same 《现代汉语常用字表》 stroke-grouping excerpt used by the site’s stroke-count tool: 524 common characters from 1–6 strokes (see txt_a2z-data.ts). Characters outside the table are never guessed — they are printed as "not collected" and sort last, with a separate count in the stats. Common surnames with 7+ strokes such as 张, 李 and 陈 are not covered yet; for full stroke data consult 《现代汉语词典》 or Unihan kTotalStrokes.

How are equal stroke counts or equal pinyin ordered?

In stroke mode, ties keep their input order (stable sort) with no secondary key. Pinyin mode is stable as well. Export the result and post-process it when you need full control.

Which separators are accepted, and can duplicates be removed?

One name per line, plus English commas, Chinese commas and the enumeration comma; blank entries and surrounding whitespace are ignored while inner spaces are kept. Duplicates are kept by default, and the "Remove duplicates" option drops identical entries and reports how many were removed. Names never leave the browser.

Keywords:name sorterpinyin sortstroke count sortlist sorting

Related tools