Followup on #5308:
- cardinality now returns the size of the group (was order)
- order is a backward compatibility alias for cardinality
__len__
raises a deprecation error
CC: @sagetrac-sage-combinat @wdjoyner
Component: algebra
Keywords: cardinality, len, order
Author: Nicolas M. Thiéry
Reviewer: David Joyner
Merged: 4.0.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6250