sorting array and track numbers