Fixed #556 Added support for complex sortables