Implemented rinbuffer.sort().
Fixed issue with ringbuffer.sort()