sort with row-print