reverse 를 생략하면 기본값은 False 이고, 오름차순으로 정렬합니다.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
한글 문자열 목록 정렬
sort_hangul(words: list[str], reverse: bool = False) -> list[str]
reverse 를 생략하면 기본값은 False 이고, 오름차순으로 정렬합니다.
from hangulpy import sort_hangul
print(sort_hangul(["다라", "가나", "나가"])) # ['가나', '나가', '다라']
print(sort_hangul(["다라", "가나", "나가"], reverse=True)) # ['다라', '나가', '가나']