Partially sort students before insertion in sheet