Sort Array Using Pointer In Function C