Sort Basic functionality implemented.