Some minor modifications.

Specified specifically that this function orders by ascending order.