1.0.0 • Published 4 years ago

compare-chinese v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

使用方法

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

console.log(at);
// [ '五方', '甲方', '乙方', '丁方', '放1', '部门二', '部门四', '部门1', '部门3' ]