Fix deprecated usage of sortlist