implemented generic schematic ordering, close #1528