Sorting

Implemented new sorting module