Fix error while sorting list

This was probably due to me not testing it after one of my (many) REORGANIZE
EVERYTHING changes.