La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.
```
-
>>> '一' < '二' True >>> '二' < '三' False
:neofox_what:
-
in fact:
>>> sorted('一二三四五六七八九十') ['一', '七', '三', '九', '二', '五', '八', '六', '十', '四']
:apensive:
-
yea i know they are because of code points
>>> list(map(ord, '一二三四五六七八九十')) [19968, 20108, 19977, 22235, 20116, 20845, 19971, 20843, 20061, 21313]
why aren't they next to each other
like, if i had a collection of books with chinese names and numerals they'd be all out of orders :blobcatgooglyholdingitsheadinitshands:
on another note i found out that if a book is split into several parts in chinese they might be labelled with 上/中/下 instead of 一/二/三, and guess what?
>>> sorted('上中下') ['上', '下', '中']
yea :apensive:
-
@xarvos so they would be in other languages as soon as you get to 2+ digits, unless you'd perform a numerical sort