compare-chinese
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

使用方法

import { compareChinese } from "compare-chinese";
const at = [
  "丁方",
  "乙方",
  "甲方",
  "五方",
  "放1",
  "部门二",
  "部门3",
  "部门四",
  "部门1",
].sort(compareChinese);
 
console.log(at);
// [ '五方', '甲方', '乙方', '丁方', '放1', '部门二', '部门四', '部门1', '部门3' ]

Readme

Keywords

Package Sidebar

Install

npm i compare-chinese

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.51 kB

Total Files

7

Last publish

Collaborators

  • eoyo