The conversation between human and AI assistant.
[|Human|] Find the most efficient way to sort the following array using a single line of code. 

[6, 8, 12, 4, 7]
[|AI|] sorted([6, 8, 12, 4, 7])
[|Human|] 
Find the most efficient way to sort the following array using a single line of code. 

[6, 8, 12, 4, 7]