How to create and sort NumPy arrays?

I’m learning the NumPy library. I have a query that is it possible to create arrays of any dimension and shape and perform operations on them with ease? Sorting is an essential operation when dealing with arrays of data, and I have learned that NumPy provides efficient sorting functions that can be applied to arrays of any size. I have found a code that claims it creates and sorts arrays.
Here’s a code that I found:

But it is one of those methods that NumPy provides. Can someone share with me many other code examples of creating arrays and sorting them?