Linux 전체 행 정렬이 올바르게 정렬되지 않습니다.

Linux 전체 행 정렬이 올바르게 정렬되지 않습니다.

linux 명령을 사용하여 파일을 전체 줄로 정렬하고 싶습니다 sort.

내 프로필cat hello

#_
*
#1

달릴 때sort hello

#_
*
#1

ASCII 테이블의 첫 번째 항목이므로 #예상 결과는 다음과 같습니다.*

#_
#1
*

왜 그런지 설명해 줄 수 있는 사람이 있나요? 감사해요.


고쳐 쓰다

locale결과는

locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

업데이트 2

sort --debug hello결과

sort --debug hello
sort: using ‘en_US.UTF-8’ sorting rules
#_
__
*
_
#1
__

업데이트 3

내 운영체제 버전 세부정보

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:    19.10
Codename:   eoan

# sort --version
sort (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.

다른 컴퓨터에서 실행하면 결과가 다릅니다

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:   bionic

# sort --version    
sort (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.

# sort hello    
*
#_
#1

관련 정보