Space Complexity of inbuilt Arrays.sort() function

what is the space complexity of inbuilt Arrays.sort() function