Adds sort, first and last
Merge pull request #34 from ProjetPP/sort

Adds sort, first and last