Added return type to sort.