Add ordering implementation