Fix ticket ID sorting.