Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sort Chinese word list by pinyin
(defconst my-chinese-pinyin-order-hash
#s(hash-table size 30 test equal data (
"" 375
"" 381
"" 81
"" 293
"" 72
"" 35
"" 264
"" 20
"" 278
"" 278
"" 6
"" 145
"" 136
"" 84
"" 169
"" 178
"" 218
"" 63
"" 375
"" 293
"" 375
"" 98
"" 166
"" 312
"" 105
"" 330
"" 22
"" 56
"" 360
"" 58
"" 405
"" 375
"" 350
"" 293
"" 360
"" 160
"" 142
"" 305
"" 266
"" 264
"" 45
"亿" 381
"" 95
"" 307
"" 145
"" 87
"" 136
"" 361
"" 353
"" 196
"广" 111
"" 354
"" 196
"" 381
"" 391
"" 312
"" 105
"" 136
"" 381
"" 391
"" 355
"" 375
"" 241
"" 89
"" 283
"" 361
"" 32
"" 196
"" 364
"" 91
"" 350
"" 143
"" 150
"" 94
"" 330
"" 359
"" 388
"" 416
"" 390
"" 402
"" 381
"" 215
"" 350
"" 410
"" 342
"" 5
"" 330
"" 275
"" 274
"" 178
"" 386
"" 386
"" 254
"" 37
"" 146
"" 376
"" 348
"" 14
"" 127
"" 269
"" 351
"" 410
"" 293
"" 278
"" 391
"" 99
"" 11
"" 223
"" 293
"" 138
"" 359
"" 235
"" 293
"" 201
"" 264
"" 311
"" 35
"" 283
"" 293
"" 255
"" 262
"" 128
"" 42
"" 14
"" 284
"" 142
"" 142
"" 406
"" 87
"" 141
"" 94
"" 22
"" 142
"" 369
"" 85
"" 86
"" 105
"" 26
"" 389
"" 312
"" 359
"" 266
"" 91
"" 61
"" 390
"" 359
"" 91
"" 106
"" 350
"" 186
"" 85
"" 134
"" 350
"" 75
"" 381
"" 72
"" 136
"" 127
"" 283
"" 367
"" 40
"" 382
"" 42
"" 6
"" 159
"" 78
"" 8
"" 375
"" 390
"" 387
"" 275
"" 293
"" 314
"" 130
"" 387
"" 153
"" 293
"" 196
"" 355
"" 136
"" 59
"" 268
"" 391
"" 262
"" 6
"" 95
"" 284
"" 274
"" 98
"" 312
"" 107
"" 141
"" 12
"" 314
"" 150
"" 19
"" 428
"" 178
"" 386
"" 312
"" 21
"" 188
"" 259
"" 209
"" 96
"" 74
"" 150
"" 11
"" 404
"" 380
"" 145
"" 316
"" 112
"" 269
"" 61
"" 215
"" 380
"" 137
"" 310
"" 72
"" 69
"" 115
"" 339
"" 375
"" 312
"" 391
"" 378
"" 369
"" 70
"" 135
"" 185
"" 63
"" 333
"" 293
"" 311
"" 312
"" 121
"" 273
"" 94
"" 405
"" 60
"" 363
"" 196
"" 381
"" 7
"" 393
"" 330
"" 40
"" 108
"" 127
"" 51
"" 185
"" 375
"" 316
"" 382
"" 175
"" 146
"" 51
"" 28
"" 87
"" 352
"" 43
"" 74
"" 230
"" 359
"" 5
"" 136
"" 391
"" 312
"" 178
"" 305
"" 172
"" 8
"" 410
"" 132
"" 330
"" 118
"" 234
"" 373
"" 330
"" 335
"" 360
"" 278
"" 178
"" 374
"" 5
"" 381
"" 374
"" 136
"" 385
"" 322
"" 227
"" 210
"" 31
"" 182
"" 218
"" 238
"" 137
"" 391
"" 254
"" 15
"" 85
"" 390
"" 311
"" 58
"" 332
"" 201
"" 145
"" 196
"" 386
"" 322
"" 312
"" 368
"" 74
"" 99
"" 322
"" 136
"" 160
"" 155
"" 349
"" 174
"" 410
"" 105
"" 136
"" 168
"" 298
"" 64
"" 378
"" 35
"" 84
"" 105
"" 200
"" 376
"" 410
"" 370
"" 256
"" 136
"" 275
"" 95
"" 38
"" 391
"" 366
"西" 361
"" 376
"" 377
"" 391
"" 375
"" 7
"" 56
"" 81
"" 380
"" 139
"" 162
"" 80
"" 132
"" 59
"" 183
"" 293
"" 39
"" 137
"" 112
"" 366
"" 128
"" 198
"" 14
"" 410
"" 50
"" 408
"" 312
"" 38
"" 138
"" 183
"" 111
"" 62
"" 396
"" 345
"" 121
"" 41
"" 274
"" 346
"" 343
"" 70
"" 40
"" 382
"" 361
"" 196
"屿" 387
"" 87
"" 327
"" 132
"" 264
"" 99
"" 391
"" 287
"" 354
"" 216
"" 413
"" 360
"" 73
"" 308
"" 413
"" 266
"" 268
"" 355
"" 45
"" 259
"" 249
"" 370
"" 359
"" 94
"" 375
"" 86
"" 377
"" 138
"" 283
"" 293
"" 137
"" 90
"" 115
"" 378
"仿" 88
"" 134
"" 355
"" 391
"" 360
"" 364
"" 312
"" 126
"" 119
"" 412
"" 263
"" 115
"" 303
"" 121
"" 406
"" 264
"" 391
"" 380
"" 296
"" 46
"" 136
"" 80
"" 392
"" 355
"" 374
"" 410
"" 94
"" 101
"" 211
"" 58
"" 409
"" 299
"" 417
"" 41
"" 19
"" 417
"" 271
"" 381
"" 186
"" 264
"" 140
"" 50
"" 381
"" 34
"" 148
"" 41
"" 354
"" 14
"" 356
"" 46
"" 378
"" 5
"" 95
"" 206
"" 66
"" 412
"" 118
"" 359
"" 139
"" 40
"" 334
"" 200
"" 368
"" 387
"" 313
"" 403
"" 391
"" 2
"" 139
"" 149
"" 127
"" 192
"" 236
"" 91
"" 308
"访" 88
"" 374
"" 216
"" 374
"" 142
"" 63
"" 381
"" 328
"" 408
"" 378
"" 313
"" 141
"" 382
"" 88
"" 138
"" 288
"" 94
"" 115
"" 330
"" 196
"" 361
"" 387
"" 110
"" 130
"" 198
"" 125
"" 266
"" 136
"" 389
"" 136
"" 40
"" 374
"寿" 313
"" 236
"" 198
"" 368
"" 142
"" 141
"" 348
"" 388
"" 355
"" 390
"" 94
"" 94
"" 333
"" 136
"" 129
"" 281
"" 146
"" 391
"" 254
"" 37
"" 410
"" 423
"" 36
"" 6
"" 105
"" 105
"" 40
"" 308
"" 414
"" 8
"" 267
"" 365
"" 149
"" 250
"" 344
"" 90
"" 154
"" 158
"" 88
"" 75
"" 127
"" 156
"" 391
"" 235
"" 163
"" 293
"" 5
"" 10
"" 276
"" 141
"" 376
"" 128
"" 270
"" 90
"" 26
"" 88
"" 377
"" 190
"" 174
"" 156
"" 325
"" 98
"" 99
"" 76
"" 24
"" 56
"" 368
"" 136
"" 178
"" 378
"" 273
"" 104
"" 314
"" 75
"" 181
"" 178
"" 381
"" 38
"" 178
"" 93
"" 117
"" 138
"" 169
"" 180
"" 21
"" 138
"" 118
"" 72
"" 39
"" 293
"" 359
"" 413
"" 363
"" 178
"" 60
"" 388
"" 165
"" 355
"" 375
"" 79
"" 424
"" 386
"" 219
"" 167
"" 36
"" 45
"" 375
"" 330
"" 90
"" 47
"" 359
"" 5
"" 126
"" 17
"" 99
"" 405
"" 24
"" 408
"" 72
"" 100
"" 350
"" 191
"" 178
"" 345
"" 370
"" 322
"" 196
"" 5
"" 107
"" 330
"" 121
"" 58
"" 310
"" 428
"" 20
"" 185
"" 385
"" 67
"" 216
"" 413
"" 355
"" 8
"" 310
"" 90
"" 92
"" 142
"" 37
"" 381
"" 87
"" 387
"" 361
"" 428
"" 107
"" 349
"" 115
"" 184
"" 32
"" 98
"" 76
"" 35
"" 95
"" 207
"" 165
"" 386
"" 140
"" 305
"" 330
"" 191
"" 63
"" 383
"" 87
"" 382
"" 136
"" 377
"" 74
"" 417
"" 215
"" 165
"" 46
"" 150
"" 182
"" 383
"" 177
"" 391
"" 371
"" 367
"" 264
"" 380
"" 354
"" 363
"" 138
"" 204
"" 248
"" 396
"" 25
"" 67
"" 354
"" 303
"" 264
"" 358
"" 87
"" 106
"" 196
"" 293
"" 38
"怀" 129
"" 386
"" 150
"" 350
"" 323
"" 125
"" 174
"" 145
"" 272
"" 393
"" 181
"" 409
"" 264
"" 259
"" 21
"" 43
"" 308
"" 312
"" 325
"" 408
"" 50
"" 381
"" 149
"" 185
"" 136
"" 30
"尿" 230
"" 355
"" 40
"" 146
"" 97
"" 391
"" 136
"" 136
"" 186
"" 0
"" 38
"" 424
"" 94
"" 208
"" 379
"" 88
"" 238
"" 283
"" 142
"" 136
"" 274
"" 48
"" 303
"" 217
"" 99
"" 20
"" 422
"" 90
"" 410
"" 356
"" 88
"" 194
"" 235
"" 91
"" 353
"" 130
"" 359
"" 271
"" 397
"" 363
"" 16
"" 112
"" 197
"" 188
"" 6
"" 138
"" 61
"" 333
"" 376
"" 42
"" 109
"" 349
"" 247
"" 391
"" 72
"" 33
"" 385
"" 67
"" 146
"" 312
"" 10
"" 170
"" 170
"" 172
"" 8
"" 368
"" 406
"" 260
"" 254
"" 20
"" 391
"" 332
"" 136
"" 274
"" 161
"" 292
"" 201
"" 259
"" 208
"" 375
"" 87
"" 410
"" 137
"" 143
"" 201
"" 184
"" 410
"" 11
"" 112
"" 361
"" 8
"" 323
"" 267
"" 106
"" 141
"" 293
"" 408
"" 293
"" 134
"" 128
"" 358
"" 293
"" 50
"" 396
"" 387
"" 198
"" 165
"" 197
"" 28
"" 12
"" 136
"" 90
"" 332
"" 244
"" 188
"" 264
"" 125
"" 271
"" 416
"" 138
"" 192
"" 289
"" 63
"" 85
"" 314
"" 157
"齿" 40
"" 360
"" 127
"" 190
"" 310
"" 363
"" 306
"" 354
"" 146
"" 114
"" 355
"" 167
"" 95
"" 35
"" 35
"" 211
"" 381
"" 3
"" 69
"" 107
"" 411
"" 94
"" 127
"" 211
"" 385
"" 216
"" 2
"" 377
"" 341
"" 193
"" 410
"" 185
"" 152
"" 7
"" 87
"" 106
"" 330
"" 70
"" 410
"" 410
"" 47
"" 215
"" 359
"" 109
"" 108
"" 98
"" 115
"" 136
"" 355
"" 137
"" 312
"" 95
"使" 293
"" 178
"" 5
"" 410
"" 408
"" 28
"" 259
"" 268
"" 251
"" 134
"" 381
"" 58
"" 260
"" 410
"" 367
"" 409
"" 354
"" 246
"" 14
"" 143
"" 293
"" 293
"" 142
"" 211
"" 94
"" 6
"" 24
"" 293
"" 288
"" 333
"" 228
"" 258
"" 94
"" 89
"" 410
"" 411
"" 405
"" 253
"" 107
"" 89
"" 94
"" 366
"" 412
"" 133
"" 387
"" 345
"" 127
"" 127
"" 95
"" 11
"" 312
"" 10
"" 322
"" 5
"" 143
"" 364
"" 69
"" 375
"" 208
"" 94
"" 67
"" 136
"" 140
"" 89
"" 143
"" 200
"" 85
"" 156
"" 387
"" 402
"" 221
"" 409
"" 275
"" 147
"" 61
"" 36
"" 47
"" 154
"" 377
"" 190
"" 213
"" 266
"" 85
"" 366
"" 121
"" 404
"" 176
"" 386
"" 20
"沿" 377
"" 250
"" 413
"" 366
"" 385
"" 227
"" 89
"" 20
"" 260
"" 397
"" 410
"" 21
"" 368
"" 246
"" 180
"" 109
"" 373
"" 10
"" 422
"" 72
"" 381
"" 310
"" 412
"" 110
"" 150
"" 180
"" 293
"" 312
"" 173
"" 312
"" 138
"" 88
"" 39
"" 38
"" 305
"" 312
"" 115
"" 61
"" 374
"" 95
"" 364
"" 138
"" 325
"" 190
"" 178
"" 146
"" 141
"" 315
"" 274
"" 363
"" 39
"" 205
"" 107
"" 305
"" 139
"" 363
"" 203
"" 107
"" 141
"" 368
"" 312
"" 137
"" 25
"" 138
"线" 363
"" 180
"" 424
"" 361
"" 312
"" 410
"" 411
"" 413
"" 349
"" 307
"" 143
"" 110
"" 423
"" 48
"" 9
"" 408
"" 20
"" 76
"" 368
"" 108
"" 85
"" 40
"" 364
"" 162
"" 162
"" 39
"" 221
"" 409
"" 94
"" 406
"" 62
"" 330
"" 168
"" 317
"" 312
"" 340
"" 410
"" 69
"" 409
"" 136
"" 245
"" 351
"" 2
"" 132
"" 240
"" 214
"" 310
"" 101
"" 138
"" 119
"" 60
"" 27
"" 138
"" 32
"" 131
"" 200
"" 62
"" 286
"" 107
"" 127
"" 219
"" 379
"" 16
"" 161
"" 19
"" 74
"" 360
"" 32
"" 7
"" 186
"" 413
"" 312
"" 172
"" 314
"" 375
"" 363
"" 355
"" 352
"" 377
"" 416
"" 178
"" 126
"" 264
"" 153
"" 196
"" 218
"" 315
"" 266
"" 25
"" 378
"" 271
"" 376
"" 141
"" 11
"" 391
"" 69
"" 184
"" 172
"" 314
"" 311
"" 365
"" 35
"" 293
"" 248
"" 402
"" 125
"" 363
"" 376
"" 201
"" 383
"" 368
"" 428
"" 355
"" 246
"" 355
"" 112
"" 141
"" 125
"" 362
"" 381
"" 322
"" 197
"" 293
"" 245
"" 377
"" 197
"" 128
"" 394
"" 364
"" 116
"" 379
"" 117
"" 217
"" 333
"" 362
"" 86
"" 138
"" 341
"" 107
"" 36
"" 391
"" 99
"" 379
"" 106
"" 366
"" 99
"" 7
"" 150
"" 146
"" 391
"" 311
"" 372
"" 312
"" 208
"" 364
"" 411
"" 273
"" 156
"" 41
"" 94
"竿" 98
"" 77
"便" 15
"" 179
"" 60
"" 320
"" 370
"" 10
"" 53
"" 359
"" 138
"" 325
"" 94
"" 367
"" 131
"" 275
"" 95
"" 270
"" 418
"" 149
"" 79
"" 60
"" 194
"" 115
"" 371
"" 371
"" 138
"" 335
"" 312
"" 252
"" 61
"" 311
"" 10
"" 249
"" 198
"" 207
"" 362
"" 312
"" 76
"" 140
"" 387
"" 123
"" 201
"" 388
"" 136
"" 281
"" 312
"" 140
"" 19
"" 353
"" 135
"" 139
"" 1
"" 342
"" 181
"" 76
"" 136
"" 342
"" 46
"" 91
"" 381
"" 6
"姿" 421
"" 270
"" 375
"" 67
"" 312
"" 356
"" 86
"" 101
"" 32
"" 378
"" 203
"" 139
"" 248
"" 323
"" 176
"" 206
"" 266
"" 293
"" 227
"" 422
"" 180
"" 402
"" 250
"" 172
"" 338
"" 141
"" 125
"" 294
"" 140
"" 420
"" 74
"" 28
"" 361
"" 134
"" 247
"" 265
"" 279
"" 136
"" 375
"" 412
"" 133
"" 236
"" 142
"" 124
"" 132
"" 265
"" 221
"" 123
"" 146
"" 140
"" 372
"" 312
"" 105
"" 363
"" 330
"穿" 45
"" 269
"" 156
"" 110
"" 387
"" 15
"" 4
"" 424
"" 310
"" 413
"" 359
"" 386
"" 293
"" 323
"" 157
"退" 347
"" 136
"" 359
"" 412
"" 89
"" 75
"" 203
"" 117
"" 43
"" 363
"" 388
"" 351
"" 174
"" 381
"" 382
"" 140
"" 238
"" 137
"" 121
"" 383
"" 385
"" 60
"" 287
"" 176
"" 9
"" 286
"" 141
"" 281
"" 140
"" 132
"" 95
"" 193
"" 193
"" 148
"" 140
"" 343
"" 104
"" 120
"" 377
"" 332
"" 413
"" 8
"" 325
"" 25
"" 353
"" 404
"" 89
"" 174
"" 393
"" 21
"" 408
"" 391
"" 98
"" 264
"" 377
"" 307
"" 231
"" 198
"" 420
"" 167
"" 147
"" 328
"" 58
"" 407
"" 312
"" 138
"" 130
"" 353
"" 282
"" 159
"" 127
"" 1
"" 40
"" 61
"" 105
"" 180
"" 213
"" 121
"" 134
"" 142
"" 81
"" 408
"" 150
"" 112
"" 62
"" 343
"" 413
"" 268
"" 335
"" 101
"" 140
"" 121
"" 378
"" 95
"" 329
"" 101
"" 325
"" 75
"" 178
"" 251
"" 40
"" 288
"" 48
"" 362
"" 43
"" 260
"" 388
"" 335
"" 413
"" 183
"" 314
"" 95
"轿" 140
"" 140
"" 79
"" 14
"" 410
"" 33
"" 420
"" 194
"" 138
"" 142
"" 62
"" 304
"" 207
"" 365
"" 376
"" 131
"" 306
"" 390
"" 356
"" 307
"" 161
"" 81
"" 130
"" 0
"" 1
"" 6
"" 91
"" 388
"" 391
"贿" 132
"" 266
"" 266
"" 425
"" 341
"" 185
"" 266
"" 276
"" 378
"" 336
"" 361
"" 391
"" 39
"" 67
"" 39
"" 424
"" 136
"" 378
"" 410
"" 38
"" 206
"" 330
"" 14
"" 360
"" 328
"" 403
"" 141
"" 391
"" 381
"" 271
"" 63
"" 334
"" 146
"" 35
"" 126
"" 94
"" 11
"" 147
"" 138
"" 42
"" 308
"" 105
"" 361
"" 345
"" 371
"" 138
"" 26
"" 8
"" 119
"" 345
"" 216
"" 71
"" 1
"" 323
"" 357
"" 55
"" 410
"" 369
"" 101
"" 395
"" 140
"" 221
"" 178
"" 173
"" 91
"" 186
"" 412
"饿" 81
"" 180
"" 139
"" 139
"" 316
"" 95
"" 361
"" 419
"" 428
"" 136
"" 409
"" 19
"" 136
"" 337
"" 254
"" 365
"" 178
"" 334
"" 421
"" 181
"" 404
"" 261
"" 143
"" 21
"" 249
"" 194
"" 43
"" 389
"" 370
"" 259
"" 275
"" 90
"" 182
"" 381
"" 138
"" 155
"" 125
"" 87
"" 307
"" 413
"" 377
"" 67
"" 335
"" 407
"" 174
"" 145
"" 308
"" 365
"" 120
"" 115
"" 345
"" 387
"" 94
"" 186
"" 291
"" 173
"" 142
"" 405
"" 334
"" 385
"" 359
"" 268
"" 132
"" 389
"" 117
"" 164
"" 137
"" 365
"" 377
"" 18
"" 403
"" 286
"" 393
"" 2
"" 263
"" 173
"" 413
"" 76
"" 305
"" 351
"" 370
"" 250
"" 5
"" 364
"" 156
"" 293
"" 70
"" 388
"" 181
"" 333
"" 381
"" 10
"" 157
"" 404
"" 146
"" 366
"" 292
"" 185
"" 335
"" 363
"" 251
"" 387
"" 229
"" 330
"" 225
"" 219
"" 387
"" 297
"" 147
"" 370
"" 377
"" 136
"" 273
"" 178
"" 253
"" 76
"" 208
"" 387
"" 377
"" 141
"" 245
"" 70
"" 78
"" 347
"" 363
"" 313
"" 140
"" 335
"" 195
"" 251
"" 141
"" 159
"" 333
"" 146
"" 148
"" 410
"" 136
"" 413
"" 175
"" 131
"" 200
"" 193
"" 149
"" 24
"" 335
"" 146
"" 259
"" 20
"" 383
"" 366
"" 205
"" 307
"" 203
"" 138
"" 314
"" 338
"" 343
"" 145
"" 94
"" 245
"" 264
"" 293
"" 188
"" 361
"" 39
"" 360
"" 94
"" 181
"" 371
"" 276
"" 334
"" 35
"" 40
"" 38
"" 409
"" 206
"" 377
"" 372
"" 380
"" 170
"" 353
"" 412
"" 146
"" 389
"" 195
"" 293
"" 176
"" 35
"" 130
"" 355
"" 376
"" 404
"" 41
"" 147
"" 330
"" 34
"" 382
"" 339
"" 178
"" 178
"" 381
"" 12
"" 188
"" 67
"" 94
"" 67
"" 210
"" 391
"" 60
"" 386
"" 35
"" 244
"" 344
"" 233
"" 313
"" 342
"" 255
"" 137
"" 58
"" 363
"" 248
"" 45
"" 366
"" 121
"" 101
"" 361
"" 387
"" 24
"" 185
"" 140
"" 20
"" 180
"" 349
"" 364
"" 95
"" 24
"" 413
"" 183
"" 201
"" 205
"" 363
"" 110
"" 52
"" 138
"" 120
"" 196
"" 378
"" 123
"" 173
"" 154
"" 385
"鹿" 190
"" 63
"" 405
"" 143
"" 306
"" 424
"" 372
"" 354
"" 194
"" 391
"" 97
"" 228
"" 53
"" 178
"" 77
"" 138
"" 313
"" 271
"" 339
"" 184
"" 377
"" 274
"" 138
"" 133
"" 387
"" 335
"" 380
"" 61
"" 310
"" 260
"" 181
"" 310
"" 271
"" 361
"" 25
"" 63
"" 146
"" 338
"" 143
"" 25
"" 110
"" 160
"" 136
"宿" 325
"" 140
"" 206
"" 214
"" 131
"" 134
"" 203
"" 60
"" 98
"" 345
"" 61
"" 327
"" 61
"" 188
"" 382
"" 133
"" 310
"" 104
"" 136
"" 371
"" 371
"" 264
"" 311
"" 355
"" 207
"" 42
"绿" 194
"" 270
"" 8
"" 338
"" 164
"" 153
"" 59
"" 331
"" 375
"" 38
"" 274
"" 36
"" 67
"" 67
"" 20
"" 141
"" 361
"" 32
"" 145
"" 293
"" 413
"" 388
"" 24
"" 101
"" 189
"" 140
"" 350
"" 287
"" 322
"" 264
"" 264
"" 180
"" 296
"" 282
"" 395
"" 101
"" 74
"" 262
"" 143
"" 51
"" 170
"" 36
"" 107
"" 166
"" 9
"" 264
"" 410
"" 293
"" 381
"" 140
"" 156
"" 113
"" 207
"" 253
"" 422
"" 132
"" 134
"" 14
"" 43
"" 303
"" 383
"" 276
"" 377
"" 410
"" 183
"" 369
"" 394
"" 376
"" 11
"" 11
"" 421
"" 132
"" 35
"" 306
"" 405
"" 271
"" 314
"" 391
"" 181
"" 252
"" 143
"" 170
"" 387
"" 118
"" 143
"" 138
"" 71
"" 245
"" 381
"" 351
"" 413
"" 342
"" 121
"" 355
"" 45
"" 126
"" 94
"" 201
"" 76
"" 251
"" 122
"" 413
"" 262
"" 180
"" 365
"" 329
"" 43
"" 114
"" 370
"" 91
"" 290
"" 77
"" 410
"" 333
"" 81
"" 311
"" 307
"" 39
"" 361
"" 319
"" 165
"" 66
"" 413
"" 28
"" 304
"" 343
"" 59
"" 142
"" 409
"" 4
"" 94
"" 247
"" 10
"" 136
"" 140
"" 9
"" 43
"" 4
"" 141
"" 39
"" 387
"" 374
"" 342
"" 314
"" 87
"" 293
"" 270
"" 170
"" 254
"" 267
"" 190
"" 128
"" 126
"" 278
"" 34
"" 417
"" 199
"" 145
"" 343
"" 343
"" 168
"" 305
"" 363
"" 262
"" 90
"" 427
"" 63
"" 30
"" 377
"" 99
"" 127
"" 402
"湿" 312
"" 356
"" 156
"" 128
"" 353
"" 76
"" 386
"" 421
"" 97
"" 90
"" 131
"" 80
"" 166
"" 387
"" 152
"" 101
"" 118
"" 94
"" 54
"" 358
"" 46
"" 15
"" 387
"" 161
"" 277
"" 366
"" 379
"" 266
"" 314
"" 194
"" 139
"" 387
"" 314
"" 101
"" 361
"" 371
"" 298
"" 66
"" 77
"" 130
"" 15
"" 245
"" 388
"" 278
"" 133
"" 322
"" 308
"" 213
"" 339
"" 20
"" 331
"" 107
"" 7
"" 366
"" 8
"" 379
"" 95
"" 334
"" 333
"" 326
"" 270
"" 276
"" 172
"" 215
"" 215
"" 253
"" 371
"" 205
"" 409
"" 363
"" 142
"" 43
"" 360
"" 129
"" 387
"" 189
"" 97
"" 171
"" 42
"" 98
"" 1
"" 11
"" 327
"" 253
"" 353
"" 186
"" 176
"" 185
"" 359
"" 10
"" 314
"" 76
"" 185
"" 138
"" 143
"" 293
"" 24
"" 14
"" 387
"" 239
"" 205
"" 366
"" 2
"" 406
"" 162
"" 340
"" 112
"" 190
"" 95
"" 266
"" 81
"" 91
"" 297
"" 410
"" 426
"" 406
"" 57
"" 361
"" 193
"" 47
"" 142
"" 138
"" 146
"" 1
"" 50
"" 42
"" 42
"" 42
"" 266
"" 138
"" 132
"" 145
"" 314
"" 55
"" 303
"" 364
"" 80
"" 355
"" 387
"" 379
"" 379
"" 368
"" 94
"" 337
"" 347
"" 43
"" 141
"" 139
"" 333
"" 180
"" 360
"" 390
"" 381
"" 181
"" 314
"" 138
"" 325
"" 50
"" 203
"" 131
"" 199
"" 213
"" 375
"" 194
"" 172
"" 335
"" 361
"" 186
"" 113
"" 18
"" 181
"" 333
"" 293
"" 387
"" 295
"" 142
"" 94
"" 277
"殿" 69
"" 14
"" 405
"" 363
"" 137
"" 71
"" 91
"" 34
"" 143
"" 14
"" 178
"" 267
"" 257
"" 137
"" 55
"" 141
"" 312
"" 143
"" 403
"" 316
"" 146
"" 14
"" 215
"" 215
"" 209
"" 196
"" 186
"" 9
"" 402
"" 101
"" 396
"" 161
"" 229
"" 326
"" 50
"" 388
"" 360
"" 14
"" 35
"" 156
"" 314
"" 271
"" 170
"" 383
"" 410
"" 416
"" 268
"" 77
"" 359
"" 356
"" 293
"" 193
"" 95
"" 182
"" 14
"" 260
"" 201
"" 213
"" 20
"" 9
"" 363
"" 381
"" 199
"" 114
"" 268
"" 120
"" 100
"" 407
"" 94
"" 313
"" 170
"" 141
"" 77
"" 264
"" 143
"" 266
"" 361
"" 286
"" 264
"" 256
"" 199
"" 67
"" 377
"" 189
"" 196
"" 403
"" 295
"" 32
"" 206
"" 262
"" 224
"" 55
"" 369
"" 66
"" 193
"" 329
"" 132
"" 322
"" 294
"" 274
"" 334
"" 39
"" 20
"" 417
"" 37
"" 400
"" 51
"" 366
"" 140
"" 314
"" 124
"" 27
"" 383
"" 364
"" 245
"" 53
"" 426
"" 408
"" 203
"" 199
"" 338
"" 5
"" 362
"" 383
"" 338
"" 331
"" 24
"" 422
"" 71
"" 127
"" 413
"" 213
"" 408
"" 155
"" 63
"" 178
"稿" 100
"" 137
"" 364
"" 138
"" 255
"" 139
"" 334
"" 254
"" 64
"" 324
"" 361
"" 334
"" 314
"" 213
"" 377
"" 381
"" 127
"" 427
"" 266
"" 36
"" 74
"" 81
"" 355
"" 254
"" 27
"" 377
"" 314
"" 367
"" 10
"" 69
"" 146
"" 409
"" 286
"" 368
"" 25
"" 426
"" 338
"" 264
"" 400
"" 213
"" 143
"" 394
"" 172
"" 379
"" 124
"" 253
"" 70
"" 213
"" 234
"" 15
"" 15
"" 334
"" 100
"" 279
"" 396
"" 136
"" 172
"" 14
"" 14
"" 140
"" 60
"" 23
"" 146
"" 26
"" 318
"" 362
"" 268
"" 63
"" 193
"" 327
"" 87
"" 15
"" 383
"" 396
"" 154
"" 396
"" 14
"" 381
"" 412
"" 15
"" 94
"" 13
"" 180
"" 85
"" 383
"" 143
"" 248
"" 79
"" 34
"" 8
"" 10
"" 139
"" 280
"耀" 379
"" 396
"" 140
"" 280
"" 136
"" 213
"" 110
"" 48
"" 6
"" 189
"" 220
"" 110)))
(defun my-chinese-compare (w1 w2)
(let ((i 0)
(max-len (min (length w1) (length w2)))
v1 v2
break
rlt)
(while (and (not break) (< i max-len))
(setq v1 (gethash (substring-no-properties w1 i (1+ i)) my-chinese-pinyin-order-hash 9999))
(setq v2 (gethash (substring-no-properties w2 i (1+ i)) my-chinese-pinyin-order-hash 9999))
(unless (eq v1 v2)
(setq rlt (< v1 v2))
(setq break t))
(setq i (1+ i)))
(cond
((eq i max-len)
(if (eq max-len (length w1)) t))
(t
rlt))))
(defun my-chinese-sort-word-list (word-list)
(when word-list
(sort word-list #'my-chinese-compare)))
(message "test: %s" (my-chinese-sort-word-list '("小明" "小红" "张三" "李四" "王二" "大李" "古力娜扎" "迪丽热巴")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.