removed random in lib/,implemented name/party/country sorting