Fixed adding tickets when sorting