Sort range by value
Refer to the following example code to see how to sort a range by value.