Sort tracks during scan