Fix issue #9, implement support for multiple wrap modes and length based...

... sorting