Hello erdy_rezki!
What is your question? In the first post you initialize an array, you print it, you sort it and then you print it again.
What are you trying to do with the second post's code?