improve tutorial sorting