renamed a method, sorting also by end date