gifht
ohyao
plape
dreco

이런식으로 5글자 영단어가 순서가 랜덤으로 섞여있는걸

그 100배의 크기를 가진 Dictionary file 하고 비교해서
[Dictionary]
apple
beast
chair
coder
fight
hated
hater
kakao
panic
yahoo
(생략)

출력이
알파벳순으로
apple
coder
fight
yahoo

이렇게 하게 하려면

어떤 big O 시간이 걸릴까여