Well, given the way the AO server sends the friends list, that might be hard 
 
(It sends one "Buddy update packet" for every entry in the up-to-1000-friends at a time.  Also, I dont' have that many in my friends list for various chars loging on/off all the time to actually test this...)