sort, as an ios app