Sort uses list now instead of vector