fix sorting of phones