Adds sort, first and last