Adds ascending, descending function