Changed ascending to sort type.