Sort iOS trail