Lambda function in sorted keyword part

why it is taking x as object of the list not the second element of the list