updated Sort and Print interfaces