Added printByOrder