added ascending to sort