Yes- you can sort students by both first and by last name.
How to sort students:
Head to your classes page. The default sort is by First Name-
2. Click where it says "Student" at the top of your classes page to sort by Last Name (ascending order)-
3. Click again to sort by Last Name (descending order)-