fix docs sorting alghorithm and start working on block-source swig ext