Completed match_ends() and front_x()
sort_last() done.