Extended-order algebras as a generalization of posets