add ordering to models