fix friend sort bug