def METHOD_NAME(class_students):
	session_user = []
	remaining_students = []
	for student in class_students:
		if student.student == frappe.session.user:
			session_user.append(student)
		else:
			remaining_students.append(student)
	if len(session_user):
		return session_user + remaining_students
	else:
		return class_students