sorted clients and server

sort by server and client multithread server